| 
    rippled
    
   | 
 
Sampling function using exponential decay to provide a continuous value. More...
#include <DecayingSample.h>
Public Types | |
| using | value_type = typename Clock::duration::rep | 
| using | time_point = typename Clock::time_point | 
Public Member Functions | |
| DecayingSample ()=delete | |
| DecayingSample (time_point now) | |
| value_type | add (value_type value, time_point now) | 
| Add a new sample.   | |
| value_type | value (time_point now) | 
| Retrieve the current value in normalized units.   | |
Private Member Functions | |
| void | decay (time_point now) | 
Private Attributes | |
| value_type | m_value | 
| time_point | m_when | 
Sampling function using exponential decay to provide a continuous value.
| The | number of seconds in the decay window. | 
Definition at line 32 of file DecayingSample.h.
| using ripple::DecayingSample< Window, Clock >::value_type = typename Clock::duration::rep | 
Definition at line 35 of file DecayingSample.h.
| using ripple::DecayingSample< Window, Clock >::time_point = typename Clock::time_point | 
Definition at line 36 of file DecayingSample.h.
      
  | 
  delete | 
      
  | 
  explicit | 
| now | Start time of DecayingSample. | 
Definition at line 43 of file DecayingSample.h.
| value_type ripple::DecayingSample< Window, Clock >::add | ( | value_type | value, | 
| time_point | now | ||
| ) | 
Add a new sample.
The value is first aged according to the specified time.
Definition at line 51 of file DecayingSample.h.
| value_type ripple::DecayingSample< Window, Clock >::value | ( | time_point | now | ) | 
Retrieve the current value in normalized units.
The samples are first aged according to the specified time.
Definition at line 62 of file DecayingSample.h.
      
  | 
  private | 
Definition at line 71 of file DecayingSample.h.
      
  | 
  private | 
Definition at line 100 of file DecayingSample.h.
      
  | 
  private | 
Definition at line 103 of file DecayingSample.h.