ns3::NakagamiPropagationLossModel Class Reference

Nakagami-m fast fading propagation loss model. More...

#include <propagation-loss-model.h>

Inheritance diagram for ns3::NakagamiPropagationLossModel:
Inheritance graph
[legend]
Collaboration diagram for ns3::NakagamiPropagationLossModel:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 NakagamiPropagationLossModel ()

Static Public Member Functions

static TypeId GetTypeId (void)
 This method returns the TypeId associated to ns3::NakagamiPropagationLossModel.

Private Member Functions

 NakagamiPropagationLossModel (const NakagamiPropagationLossModel &o)
NakagamiPropagationLossModeloperator= (const NakagamiPropagationLossModel &o)
virtual double DoCalcRxPower (double txPowerDbm, Ptr< MobilityModel > a, Ptr< MobilityModel > b) const

Private Attributes

double m_distance1
double m_distance2
double m_m0
double m_m1
double m_m2

Detailed Description

Nakagami-m fast fading propagation loss model.

The Nakagami-m distribution is applied to the power level. The probability density function is defined as

\[ p(x; m, \omega) = \frac{2 m^m}{\Gamma(m) \omega^m} x^{2m - 1} e^{-\frac{m}{\omega} x^2} = 2 x \cdot p_{\text{Gamma}}(x^2, m, \frac{m}{\omega}) \]

with $ m $ the fading depth parameter and $ \omega $ the average received power.

It is implemented by either a ns3::GammaVariable or a ns3::ErlangVariable random variable.

Like in ns3::ThreeLogDistancePropagationLossModel, the m parameter is varied over three distance fields:

\[ \underbrace{0 \cdots\cdots}_{m_0} \underbrace{d_1 \cdots\cdots}_{m_1} \underbrace{d_2 \cdots\cdots}_{m_2} \infty \]

For m = 1 the Nakagami-m distribution equals the Rayleigh distribution. Thus this model also implements Rayleigh distribution based fast fading.

Definition at line 318 of file propagation-loss-model.h.


Constructor & Destructor Documentation

ns3::NakagamiPropagationLossModel::NakagamiPropagationLossModel (  ) 

Definition at line 454 of file propagation-loss-model.cc.

ns3::NakagamiPropagationLossModel::NakagamiPropagationLossModel ( const NakagamiPropagationLossModel o  )  [private]

Member Function Documentation

double ns3::NakagamiPropagationLossModel::DoCalcRxPower ( double  txPowerDbm,
Ptr< MobilityModel a,
Ptr< MobilityModel b 
) const [private, virtual]
TypeId ns3::NakagamiPropagationLossModel::GetTypeId ( void   )  [static]

This method returns the TypeId associated to ns3::NakagamiPropagationLossModel.

Attributes defined for this type:

  • Distance1: Beginning of the second distance field. Default is 80m.
    • Set with class: ns3::DoubleValue
    • Underlying type: double -1.79769e+308:1.79769e+308
    • Initial value: 80
    • Flags: construct write read
  • Distance2: Beginning of the third distance field. Default is 200m.
    • Set with class: ns3::DoubleValue
    • Underlying type: double -1.79769e+308:1.79769e+308
    • Initial value: 200
    • Flags: construct write read
  • m0: m0 for distances smaller than Distance1. Default is 1.5.
    • Set with class: ns3::DoubleValue
    • Underlying type: double -1.79769e+308:1.79769e+308
    • Initial value: 1.5
    • Flags: construct write read
  • m1: m1 for distances smaller than Distance2. Default is 0.75.
    • Set with class: ns3::DoubleValue
    • Underlying type: double -1.79769e+308:1.79769e+308
    • Initial value: 0.75
    • Flags: construct write read
  • m2: m2 for distances greater than Distance2. Default is 0.75.
    • Set with class: ns3::DoubleValue
    • Underlying type: double -1.79769e+308:1.79769e+308
    • Initial value: 0.75
    • Flags: construct write read

No TraceSources defined for this type.

Reimplemented from ns3::PropagationLossModel.

Definition at line 417 of file propagation-loss-model.cc.

References ns3::TypeId::AddAttribute(), m_distance1, m_distance2, m_m0, m_m1, m_m2, and ns3::TypeId::SetParent().

NakagamiPropagationLossModel& ns3::NakagamiPropagationLossModel::operator= ( const NakagamiPropagationLossModel o  )  [private]

Member Data Documentation

Definition at line 335 of file propagation-loss-model.h.

Referenced by DoCalcRxPower(), and GetTypeId().

Definition at line 336 of file propagation-loss-model.h.

Referenced by DoCalcRxPower(), and GetTypeId().

Definition at line 338 of file propagation-loss-model.h.

Referenced by DoCalcRxPower(), and GetTypeId().

Definition at line 339 of file propagation-loss-model.h.

Referenced by DoCalcRxPower(), and GetTypeId().

Definition at line 340 of file propagation-loss-model.h.

Referenced by DoCalcRxPower(), and GetTypeId().


The documentation for this class was generated from the following files:
Generated on Thu Dec 3 14:11:21 2009 for NS-3 by  doxygen 1.6.3