jist.swans.field
Class Fading.Rician

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

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

Computes Rician 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  double kFactor
          distribution parameters.
private  double stddev
          distribution parameters.
 
Constructor Summary
Fading.Rician(double kFactor)
          Create new Rician fading model object.
 
Method Summary
private static double Besseli0(double x)
          Compute zero-order Bessel function.
private static double Besseli1(double x)
          Compute first-order Bessel function.
 double compute()
          Compute the fading loss.
private static double computeStandardDeviation(double kFactor)
          Computes standard deviation for Rician distribution such that mean is 1.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

kFactor

private final double kFactor
distribution parameters.


stddev

private final double stddev
distribution parameters.

Constructor Detail

Fading.Rician

public Fading.Rician(double kFactor)
Create new Rician fading model object.

Parameters:
kFactor - k
Method Detail

Besseli0

private static double Besseli0(double x)
Compute zero-order Bessel function.

Parameters:
x - input
Returns:
output of Bessel

Besseli1

private static double Besseli1(double x)
Compute first-order Bessel function.

Parameters:
x - input
Returns:
output of Bessel

computeStandardDeviation

private static double computeStandardDeviation(double kFactor)
Computes standard deviation for Rician distribution such that mean is 1.

Parameters:
kFactor - k
Returns:
Rician standard deviation

compute

public double compute()
Compute the fading loss.

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