![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
Manages exponential moving averages defined as new_average = decaying_factor * old_average
#include <util.h>
Public Member Functions | |
| ExponentialMovingAverage (double decaying_factor) | |
| double | CurrentAverage () const |
| Returns exponential moving average for all the added data so far. | |
| int64_t | NumRecords () const |
| Returns the total number of added records so far. | |
| void | AddData (double new_record) |
|
inlineexplicit |
| void operations_research::sat::ExponentialMovingAverage::AddData | ( | double | new_record | ) |
|
inline |
|
inline |