Sirikata
|
Exponential weighted average rate estimator. More...
#include <RateEstimator.hpp>
Public Member Functions | |
RateEstimator () | |
RateEstimator (double good_guess, const Time &start) | |
double | get () const |
double | get (const Time &t, double K) const |
double | estimate_rate (const Time &t, uint32 len, double K) |
Private Attributes | |
double | _value |
Time | _t |
uint32 | _backlog |
Exponential weighted average rate estimator.
Sirikata::RateEstimator::RateEstimator | ( | ) | [inline] |
Sirikata::RateEstimator::RateEstimator | ( | double | good_guess, |
const Time & | start | ||
) | [inline] |
double Sirikata::RateEstimator::estimate_rate | ( | const Time & | t, |
uint32 | len, | ||
double | K | ||
) | [inline] |
References _backlog, _t, and _value.
Referenced by Sirikata::CSFQODPFlowScheduler::push().
double Sirikata::RateEstimator::get | ( | ) | const [inline] |
double Sirikata::RateEstimator::get | ( | const Time & | t, |
double | K | ||
) | const [inline] |
uint32 Sirikata::RateEstimator::_backlog [private] |
Referenced by estimate_rate(), and get().
Time Sirikata::RateEstimator::_t [private] |
Referenced by estimate_rate(), and get().
double Sirikata::RateEstimator::_value [private] |
Referenced by estimate_rate(), and get().