Functions | |
| Ptr< SpectrumValue > | 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. | |
| 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.
| txPsd | the transmitted PSD to be converted |
| txSpectrumModel | the SpectrumModel over which the transmitted PSD is defined |
| rxSpectrumModel | the SpectrumModel over which the converted PSD should be defined |
Definition at line 36 of file spectrum-converter.cc.
References ConvertAlignedSpectrumModels(), and ns3::Create().
Referenced by ConvertAlignedSpectrumModels().