Research Article

The Slashed-Rayleigh Fading Channel Distribution

Algorithm 2

Fading simulation.
Input:
Alpha: parameter ()
Q: parameter ()
NRays: number of emitted signals (NRays )
NRef: number of reflections (NRef )
Speed: average speed of vehicle (Speed )
Freq: carrier frequency (Freq )
FTime: simulation time (FTime )
STime: sampling time (STime )
Output:
r: signal envelope
Begin:
Power getPower(Alpha, Q) ⊳Get average signal strength
A ⊳Get signal amplitudes
phi rand(NRays, NRef)⊳Generate uniformly distributed phase
psi rand(NRays, NRef)⊳Generate uniformly distributed arriving wave
B Freq 3.3e-03 ⊳Maximum Doppler frequency shift
w ⊳Including Doppler effects
t 0: STime: FTime ⊳Time span
x 0
y 0
fordo
fordo
tmp ⊳Get Doppler phase shift
⊳In-phase component
⊳Quadrature component
end for
end for
Power ⊳Set the average signal strength
Power ⊳Set the average signal strength
⊳Calculate the signal envelope
End