Sirikata
Public Member Functions | Private Attributes
Sirikata::RateEstimator Class Reference

Exponential weighted average rate estimator. More...

#include <RateEstimator.hpp>

Inheritance diagram for Sirikata::RateEstimator:
Collaboration diagram for Sirikata::RateEstimator:

List of all members.

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

Detailed Description

Exponential weighted average rate estimator.


Constructor & Destructor Documentation

Sirikata::RateEstimator::RateEstimator ( ) [inline]
Sirikata::RateEstimator::RateEstimator ( double  good_guess,
const Time start 
) [inline]

Member Function Documentation

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]

References _backlog, _t, and _value.


Member Data Documentation

Referenced by estimate_rate(), and get().

Referenced by estimate_rate(), and get().

Referenced by estimate_rate(), and get().


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