Sirikata
|
RateEstimator that holds its falloff parameter with it. More...
#include <RateEstimator.hpp>
Public Member Functions | |
SimpleRateEstimator (double K) | |
SimpleRateEstimator (double good_guess, const Time &start, double K) | |
double | estimate_rate (const Time &t, uint32 len) |
Private Attributes | |
double | _K |
RateEstimator that holds its falloff parameter with it.
This should only be used when the cost of storing the falloff parameter per estimator is low, i.e. if the estimator is unique.
Sirikata::SimpleRateEstimator::SimpleRateEstimator | ( | double | K | ) | [inline] |
Sirikata::SimpleRateEstimator::SimpleRateEstimator | ( | double | good_guess, |
const Time & | start, | ||
double | K | ||
) | [inline] |
double Sirikata::SimpleRateEstimator::estimate_rate | ( | const Time & | t, |
uint32 | len | ||
) | [inline] |
double Sirikata::SimpleRateEstimator::_K [private] |
Referenced by estimate_rate().