|
76 |
RttEstimator::SetEstimate (Time estimate) |
76 |
RttEstimator::SetEstimate (Time estimate) |
77 |
{ |
77 |
{ |
78 |
est = estimate; |
78 |
est = estimate; |
|
|
79 |
initialEst = est; |
79 |
} |
80 |
} |
80 |
Time |
81 |
Time |
81 |
RttEstimator::GetEstimate (void) const |
82 |
RttEstimator::GetEstimate (void) const |
|
183 |
void RttEstimator::Reset () |
184 |
void RttEstimator::Reset () |
184 |
{ // Reset to initial state |
185 |
{ // Reset to initial state |
185 |
next = 1; |
186 |
next = 1; |
186 |
est = 1; // XXX: we should go back to the 'initial value' here. Need to add support in Object for this. |
187 |
est = initialEst; // XXX: we should go back to the 'initial value' here. Need to add support in Object for this. |
187 |
history.clear (); // Remove all info from the history |
188 |
history.clear (); // Remove all info from the history |
188 |
nSamples = 0; |
189 |
nSamples = 0; |
189 |
ResetMultiplier (); |
190 |
ResetMultiplier (); |