A communication model based on a BPSK frame in an underwater channel modeled as a Rayleigh or Rician fading channel, with a LFM/DSSS detection preamble.
Type | Name and description |
---|---|
boolean |
fastFading Controls fast vs slow fading. |
float |
pfa Acceptable probability of false alarm for packet detection. |
float |
processingGain Processing gain (or loss) in dB, to cater for effects such as coding, coherent use of multipath in equalization, poor synchronization, etc. |
float |
ricianK Rician specular component (parameter K). |
Constructor and description |
---|
BPSKFadingModel
(AbstractAcousticChannel parent) Creates the communication model. |
Type Params | Return Type | Name and description |
---|---|---|
|
int |
decode(Reception rx, double snr) Simulates bit errors in the received frame. |
|
boolean |
detect(Reception rx, double snr) Simulates preamble detection (assuming pulse compression). |
|
void |
setPfa(float p) Set acceptable probability of false alarm for preamble detection. |
|
void |
setRicianK(float k) Set Rician specular component (parameter K). |
Controls fast vs slow fading.
Acceptable probability of false alarm for packet detection.
Processing gain (or loss) in dB, to cater for effects such as coding, coherent use of multipath in equalization, poor synchronization, etc.
Rician specular component (parameter K). A low value of K less makes the channel similar to a Rayleigh fading channel, while a high value of K makes the channel an AWGN channel.
Creates the communication model.
Simulates bit errors in the received frame.
rx
- details of the receptionsnr
- signal-to-noise ratioSimulates preamble detection (assuming pulse compression).
rx
- details of the receptionsnr
- signal-to-noise ratioSet acceptable probability of false alarm for preamble detection.
p
- probability of false alarmSet Rician specular component (parameter K). A low value of K less makes the channel similar to a Rayleigh fading channel, while a high value of K makes the channel an AWGN channel.
k
- Rician K parameterCopyright 2013-19, Acoustic Research Laboratory, National University of Singapore, and Subnero Pte Ltd