| 
    rippled
    
   | 
 
Sampling function using exponential decay to provide a continuous value. More...
#include <DecayingSample.h>
Public Types | |
| using | time_point = typename Clock::time_point | 
Public Member Functions | |
| DecayWindow (time_point now) | |
| void | add (double value, time_point now) | 
| double | value (time_point now) | 
Private Member Functions | |
| void | decay (time_point now) | 
Private Attributes | |
| double | value_ | 
| time_point | when_ | 
Sampling function using exponential decay to provide a continuous value.
| HalfLife | The half life of a sample, in seconds. | 
Definition at line 112 of file DecayingSample.h.
| using ripple::DecayWindow< HalfLife, Clock >::time_point = typename Clock::time_point | 
Definition at line 115 of file DecayingSample.h.
      
  | 
  explicit | 
Definition at line 117 of file DecayingSample.h.
| void ripple::DecayWindow< HalfLife, Clock >::add | ( | double | value, | 
| time_point | now | ||
| ) | 
Definition at line 122 of file DecayingSample.h.
| double ripple::DecayWindow< HalfLife, Clock >::value | ( | time_point | now | ) | 
Definition at line 129 of file DecayingSample.h.
      
  | 
  private | 
Definition at line 139 of file DecayingSample.h.
      
  | 
  private | 
Definition at line 149 of file DecayingSample.h.
      
  | 
  private | 
Definition at line 150 of file DecayingSample.h.