33 #ifndef EMANENAKAGAMIFADINGALGORITHM_HEADER_ 34 #define EMANENAKAGAMIFADINGALGORITHM_HEADER_ 48 const std::string & sPrefix);
56 double operator()(
double dPowerdBm,
double dDistanceMeters)
override 60 if(dDistanceMeters < dDistance0Meters_)
64 else if (dDistanceMeters < dDistance1Meters_)
74 Distribution::param_type{m,
82 double dDistance0Meters_;
83 double dDistance1Meters_;
84 std::mt19937 generator_;
85 using Distribution = std::gamma_distribution<>;
86 Distribution distribution_;
92 #endif // EMANENAKAGAMIFADINGALGORITHM_HEADER_ double MILLIWATT_TO_DB(double dMillWatt)
The Registrar interface provides access to all of the emulator registrars.
double operator()(double dPowerdBm, double dDistanceMeters) override
void modify(const ConfigurationUpdate &update) override
void configure(const ConfigurationUpdate &update)
NakagamiFadingAlgorithm(NEMId id, PlatformServiceProvider *pPlatformService, const std::string &sPrefix)
std::vector< ConfigurationNameAnyValues > ConfigurationUpdate
double DB_TO_MILLIWATT(double ddB)
void initialize(Registrar ®istrar) override