A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::anonymous_namespace{spectrum-converter.cc} Namespace Reference

Functions

Ptr< SpectrumValueConvertAlignedSpectrumModels (Ptr< const SpectrumValue > txPsd, Ptr< const SpectrumModel > txSpectrumModel, Ptr< const SpectrumModel > rxSpectrumModel)
 This method converts the transmitted PSD from the TX SpectrumModel to the RX SpectrumModel in the case the two models are fully aligned, i.e., each band in the TX model has a corresponding band in the RX model with the same boundaries and hence the conversion is just a matter of copying values in the overlapping bands and setting to zero the values in the non-overlapping bands.

Function Documentation

◆ ConvertAlignedSpectrumModels()

Ptr< SpectrumValue > ns3::anonymous_namespace{spectrum-converter.cc}::ConvertAlignedSpectrumModels ( Ptr< const SpectrumValue > txPsd,
Ptr< const SpectrumModel > txSpectrumModel,
Ptr< const SpectrumModel > rxSpectrumModel )

This method converts the transmitted PSD from the TX SpectrumModel to the RX SpectrumModel in the case the two models are fully aligned, i.e., each band in the TX model has a corresponding band in the RX model with the same boundaries and hence the conversion is just a matter of copying values in the overlapping bands and setting to zero the values in the non-overlapping bands.

Parameters
txPsdthe transmitted PSD to be converted
txSpectrumModelthe SpectrumModel over which the transmitted PSD is defined
rxSpectrumModelthe SpectrumModel over which the converted PSD should be defined
Returns
the converted PSD

Definition at line 36 of file spectrum-converter.cc.

References ConvertAlignedSpectrumModels(), and ns3::Create().

Referenced by ConvertAlignedSpectrumModels().

Here is the call graph for this function:
Here is the caller graph for this function: