25 #ifndef RTT_ESTIMATOR_H 26 #define RTT_ESTIMATOR_H 28 #include "ns3/nstime.h" 29 #include "ns3/object.h" 77 virtual void Reset ();
Simulation virtual time values and global simulation resolution.
Smart pointer class similar to boost::intrusive_ptr.
virtual Ptr< RttEstimator > Copy() const =0
Copy object (including current internal state)
static TypeId GetTypeId(void)
Get the type ID.
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
double m_alpha
Filter gain for average.
void IntegerUpdate(Time m, uint32_t rttShift, uint32_t variationShift)
Method to update the rtt and variation estimates using integer arithmetic, used when the values of Al...
The "Mean--Deviation" RTT estimator, as discussed by Van Jacobson.
uint32_t CheckForReciprocalPowerOfTwo(double val) const
Utility function to check for possible conversion of a double value (0 < value < 1) to a reciprocal p...
Time GetEstimate(void) const
gets the RTT estimate.
static TypeId GetTypeId(void)
Get the type ID.
Time m_initialEstimatedRtt
Initial RTT estimation.
Base class for all RTT Estimators.
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Time m_estimatedRtt
Current estimate.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
virtual void Measurement(Time t)=0
Add a new measurement to the estimator.
uint32_t GetNSamples(void) const
gets the number of samples used in the estimates
uint32_t m_nSamples
Number of samples.
Time GetVariation(void) const
Note that this is not a formal statistical variance; it has the the same units as the estimate...
virtual void Reset()
Resets the estimation to its initial state.
void Reset()
Resets the estimator.
double m_beta
Filter gain for variation.
void FloatingPointUpdate(Time m)
Method to update the rtt and variation estimates using floating point arithmetic, used when the value...
void Measurement(Time measure)
Add a new measurement to the estimator.
Ptr< RttEstimator > Copy() const
Copy object (including current internal state)
A base class which provides memory management and object aggregation.
a unique identifier for an interface.
Time m_estimatedVariation
Current estimate variation.