Manages incremental averages.
More...
#include <util.h>
Manages incremental averages.
Definition at line 523 of file util.h.
◆ IncrementalAverage() [1/2]
operations_research::sat::IncrementalAverage::IncrementalAverage |
( |
double | initial_average | ) |
|
|
inlineexplicit |
Initializes the average with 'initial_average' and number of records to 0.
Definition at line 526 of file util.h.
◆ IncrementalAverage() [2/2]
operations_research::sat::IncrementalAverage::IncrementalAverage |
( |
| ) |
|
|
default |
◆ AddData()
void operations_research::sat::IncrementalAverage::AddData |
( |
double | new_record | ) |
|
◆ CurrentAverage()
double operations_research::sat::IncrementalAverage::CurrentAverage |
( |
| ) |
const |
|
inline |
◆ NumRecords()
int64_t operations_research::sat::IncrementalAverage::NumRecords |
( |
| ) |
const |
|
inline |
◆ Reset()
void operations_research::sat::IncrementalAverage::Reset |
( |
double | reset_value | ) |
|
Sets the number of records to 0 and average to 'reset_value'.
Definition at line 401 of file util.cc.
The documentation for this class was generated from the following files: