jist.swans.field
Class Fading.Rayleigh

java.lang.Object
  extended by jist.swans.field.Fading.Rayleigh
All Implemented Interfaces:
Fading
Enclosing interface:
Fading

public static final class Fading.Rayleigh
extends java.lang.Object
implements Fading

Computes Rayleigh fading. Equivalent to GloMoSim code.

Since:
SWANS1.0
Author:
Rimon Barr <barr+jist@cs.cornell.edu>

Nested Class Summary
 
Nested classes/interfaces inherited from interface jist.swans.field.Fading
Fading.None, Fading.Rayleigh, Fading.Rician
 
Field Summary
private static double VARIANCE
          Rayleigh distribution variance constant.
 
Constructor Summary
Fading.Rayleigh()
           
 
Method Summary
 double compute()
          Compute the fading loss.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VARIANCE

private static final double VARIANCE
Rayleigh distribution variance constant.

See Also:
Constant Field Values
Constructor Detail

Fading.Rayleigh

public Fading.Rayleigh()
Method Detail

compute

public double compute()
Compute the fading loss.

Specified by:
compute in interface Fading
Returns:
fading loss (units: dB)