SatChannelEstimatorError reads from file and stores the channel estimation error mean and standard deviation values for a set of SINR values. More...
#include "satellite-channel-estimation-error.h"
Inheritance diagram for ns3::SatChannelEstimationError:
Collaboration diagram for ns3::SatChannelEstimationError:Public Member Functions | |
| SatChannelEstimationError () | |
| Default constructor. More... | |
| SatChannelEstimationError (std::string filePathName) | |
| Constructor. More... | |
| virtual | ~SatChannelEstimationError () |
| Destructor for SatChannelEstimationError. More... | |
| double | AddError (double sinrInDb) const |
| Add channel estimation error to SINR. More... | |
| virtual void | DoDispose () |
| Dispose of this class instance. More... | |
Static Public Member Functions | |
| static TypeId | GetTypeId (void) |
| inherited from Object More... | |
Private Member Functions | |
| void | ReadFile (std::string filePathName) |
| Read the distribution mean and STD values from file. More... | |
Private Attributes | |
| uint32_t | m_lastSampleIndex |
| Last sample index of the containers. More... | |
| std::vector< double > | m_mueCesDb |
| Mean values. More... | |
| Ptr< NormalRandomVariable > | m_normalRandomVariable |
| Normal random variable used to calculate the channel estimation error. More... | |
| std::vector< double > | m_sinrsDb |
| SINR values. More... | |
| std::vector< double > | m_stdCesDb |
| Standard deviation values. More... | |
SatChannelEstimatorError reads from file and stores the channel estimation error mean and standard deviation values for a set of SINR values.
Channel estimation error mean and standard deviation is dependent on calculated SINR. A proper error for a given SINR is interpolated between two closest SINR points. The channel estimation error is added to a given measurement by using the AddError method.
Definition at line 43 of file satellite-channel-estimation-error.h.
| ns3::SatChannelEstimationError::SatChannelEstimationError | ( | ) |
Default constructor.
Definition at line 38 of file satellite-channel-estimation-error.cc.
References m_normalRandomVariable.
| ns3::SatChannelEstimationError::SatChannelEstimationError | ( | std::string | filePathName | ) |
Constructor.
| filePathName | A file containing the gaussian gaussian distribution mean and STD. |
Definition at line 48 of file satellite-channel-estimation-error.cc.
References m_normalRandomVariable, and ReadFile().
Here is the call graph for this function:
|
virtual |
Destructor for SatChannelEstimationError.
Definition at line 59 of file satellite-channel-estimation-error.cc.
| double ns3::SatChannelEstimationError::AddError | ( | double | sinrInDb | ) | const |
Add channel estimation error to SINR.
| sinrInDb | Measured SINR in dB |
Interpolate the proper mean and std values
Definition at line 128 of file satellite-channel-estimation-error.cc.
References ns3::SatUtils::Interpolate(), m_lastSampleIndex, m_mueCesDb, m_normalRandomVariable, m_sinrsDb, and m_stdCesDb.
Here is the call graph for this function:
|
virtual |
Dispose of this class instance.
Definition at line 73 of file satellite-channel-estimation-error.cc.
References m_normalRandomVariable.
|
static |
inherited from Object
Definition at line 64 of file satellite-channel-estimation-error.cc.
|
private |
Read the distribution mean and STD values from file.
| filePathName | File name |
Definition at line 82 of file satellite-channel-estimation-error.cc.
References m_lastSampleIndex, m_mueCesDb, m_sinrsDb, and m_stdCesDb.
Referenced by SatChannelEstimationError().
Here is the caller graph for this function:
|
private |
Last sample index of the containers.
Definition at line 90 of file satellite-channel-estimation-error.h.
Referenced by AddError(), and ReadFile().
|
private |
Mean values.
Definition at line 106 of file satellite-channel-estimation-error.h.
Referenced by AddError(), and ReadFile().
|
private |
Normal random variable used to calculate the channel estimation error.
Definition at line 96 of file satellite-channel-estimation-error.h.
Referenced by SatChannelEstimationError(), AddError(), and DoDispose().
|
private |
SINR values.
Definition at line 101 of file satellite-channel-estimation-error.h.
Referenced by AddError(), and ReadFile().
|
private |
Standard deviation values.
Definition at line 111 of file satellite-channel-estimation-error.h.
Referenced by AddError(), and ReadFile().