Public Member Functions | Friends

ns3::SpectrumModel Class Reference

#include <spectrum-model.h>

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

List of all members.

Public Member Functions

 SpectrumModel (std::vector< double > centerFreqs)
 SpectrumModel (Bands bands)
size_t GetNumBands () const
SpectrumModelUid_t GetUid () const
Bands::const_iterator Begin () const
Bands::const_iterator End () const

Friends

bool operator== (const SpectrumModel &lhs, const SpectrumModel &rhs)

Detailed Description

Set of frequency values implementing the domain of the functions in the Function Space defined by SpectrumValue. Frequency values are in Hz. It is intended that frequency values are non-negative, though this is not enforced.


Constructor & Destructor Documentation

ns3::SpectrumModel::SpectrumModel ( std::vector< double >  centerFreqs  ) 

This constructs a SpectrumModel based on a given set of frequencies, which is assumed to be sorted by increasing frequency. The lower (resp. upper) frequency band limit is determined as the mean value between the center frequency of the considered band and the center frequency of the adjacent lower (resp. upper) band.

Parameters:
centerFreqs the vector of center frequencies.
Returns:
ns3::SpectrumModel::SpectrumModel ( Bands  bands  ) 

This construct a SpectrumModel based on the explicit values of center frequencies and boundaries of each subband.

Parameters:
bands 
Returns:

Member Function Documentation

size_t ns3::SpectrumModel::GetNumBands (  )  const
Returns:
the number of frequencies in this SpectrumModel
SpectrumModelUid_t ns3::SpectrumModel::GetUid (  )  const
Returns:
the unique id of this SpectrumModel

The documentation for this class was generated from the following file: