SatBasicEstimatorAverageTestCase Class Reference

Test case to unit test satellite C/N0 estimator with mode AVERAGE. More...

+ Inheritance diagram for SatBasicEstimatorAverageTestCase:
+ Collaboration diagram for SatBasicEstimatorAverageTestCase:

Public Member Functions

 SatBasicEstimatorAverageTestCase ()
 
virtual ~SatBasicEstimatorAverageTestCase ()
 
- Public Member Functions inherited from SatEstimatorBaseTestCase
 SatEstimatorBaseTestCase ()
 
 SatEstimatorBaseTestCase (std::string info)
 
virtual ~SatEstimatorBaseTestCase ()
 
void AddSample (double cno)
 
void CreateEstimator (SatCnoEstimator::EstimationMode_t mode, Time window)
 
void GetCnoEstimation ()
 

Protected Member Functions

virtual void DoRun (void)
 

Additional Inherited Members

- Protected Attributes inherited from SatEstimatorBaseTestCase
std::vector< double > m_cnoEstimations
 
Ptr< SatCnoEstimatorm_estimator
 

Detailed Description

Test case to unit test satellite C/N0 estimator with mode AVERAGE.

This case tests that SatBasicCnoEstimator can be created in mode AVERAGE and C/N0 is estimated correctly in set window.

  1. Create SatBasicCnoEstimator object with AVERAGE mode using different window values.
  2. Set samples to estimator at different points of time (method AddSample).
  3. Get C/N0 estimation from estimator at some points of time (method GetCnoEstimation).

Expected result: Returned C/N0 estimation must be the average value of samples in window.

C/N0 estimation must be NAN, if no samples are got during time window.

Definition at line 329 of file satellite-cno-estimator-test.cc.

Constructor & Destructor Documentation

◆ SatBasicEstimatorAverageTestCase()

SatBasicEstimatorAverageTestCase::SatBasicEstimatorAverageTestCase ( )
inline

Definition at line 332 of file satellite-cno-estimator-test.cc.

◆ ~SatBasicEstimatorAverageTestCase()

virtual SatBasicEstimatorAverageTestCase::~SatBasicEstimatorAverageTestCase ( )
inlinevirtual

Definition at line 337 of file satellite-cno-estimator-test.cc.

Member Function Documentation

◆ DoRun()

void SatBasicEstimatorAverageTestCase::DoRun ( void  )
protectedvirtual

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