Oscillator class for faders. More...
#include "satellite-fading-oscillator.h"
Inheritance diagram for ns3::SatFadingOscillator:
Collaboration diagram for ns3::SatFadingOscillator:Public Member Functions | |
| SatFadingOscillator () | |
| Constructor. More... | |
| SatFadingOscillator (double amplitude, double initialPhase, double omega) | |
| Constructor. More... | |
| SatFadingOscillator (std::complex< double > amplitude, double initialPhase, double omega) | |
| Constructor. More... | |
| ~SatFadingOscillator () | |
| Destructor. More... | |
| void | DoDispose () |
| Do needed dispose actions. More... | |
| std::complex< double > | GetComplexValueAt (double timeInSeconds) const |
| Returns complex value at time t. More... | |
| std::complex< double > | GetCosineWaveValueAt (double timeInSeconds) const |
| Returns cosine wave complex value at time t. More... | |
Static Public Member Functions | |
| static TypeId | GetTypeId (void) |
| NS-3 function for type id. More... | |
Private Attributes | |
| double | m_amplitude |
| Amplitude. More... | |
| std::complex< double > | m_complexAmplitude |
| Complex amplitude. More... | |
| double | m_omega |
| Rotation speed. More... | |
| double | m_phase |
| Initial phase. More... | |
Oscillator class for faders.
This class implements the oscillators required by the faders for Markov-fading. The provided oscillator values are used to form individual fading samples.
Definition at line 40 of file satellite-fading-oscillator.h.
| ns3::SatFadingOscillator::SatFadingOscillator | ( | ) |
Constructor.
Definition at line 44 of file satellite-fading-oscillator.cc.
| ns3::SatFadingOscillator::SatFadingOscillator | ( | std::complex< double > | amplitude, |
| double | initialPhase, | ||
| double | omega | ||
| ) |
Constructor.
| amplitude | amplitude |
| initialPhase | intial phase |
| omega | rotation speed |
Definition at line 55 of file satellite-fading-oscillator.cc.
| ns3::SatFadingOscillator::SatFadingOscillator | ( | double | amplitude, |
| double | initialPhase, | ||
| double | omega | ||
| ) |
Constructor.
| amplitude | amplitude |
| initialPhase | initial phase |
| omega | rotation speed |
Definition at line 66 of file satellite-fading-oscillator.cc.
| ns3::SatFadingOscillator::~SatFadingOscillator | ( | ) |
Destructor.
Definition at line 93 of file satellite-fading-oscillator.cc.
| void ns3::SatFadingOscillator::DoDispose | ( | void | ) |
Do needed dispose actions.
Definition at line 99 of file satellite-fading-oscillator.cc.
| std::complex< double > ns3::SatFadingOscillator::GetComplexValueAt | ( | double | timeInSeconds | ) | const |
Returns complex value at time t.
| timeInSeconds | current time in seconds |
Definition at line 76 of file satellite-fading-oscillator.cc.
References m_complexAmplitude, m_omega, and m_phase.
| std::complex< double > ns3::SatFadingOscillator::GetCosineWaveValueAt | ( | double | timeInSeconds | ) | const |
Returns cosine wave complex value at time t.
| timeInSeconds | current time in seconds |
Definition at line 84 of file satellite-fading-oscillator.cc.
References m_amplitude, m_omega, and m_phase.
|
static |
NS-3 function for type id.
Definition at line 36 of file satellite-fading-oscillator.cc.
|
private |
Amplitude.
Definition at line 103 of file satellite-fading-oscillator.h.
Referenced by GetCosineWaveValueAt().
|
private |
Complex amplitude.
Definition at line 98 of file satellite-fading-oscillator.h.
Referenced by GetComplexValueAt().
|
private |
Rotation speed.
Definition at line 113 of file satellite-fading-oscillator.h.
Referenced by GetComplexValueAt(), and GetCosineWaveValueAt().
|
private |
Initial phase.
Definition at line 108 of file satellite-fading-oscillator.h.
Referenced by GetComplexValueAt(), and GetCosineWaveValueAt().