OR-Tools  8.2
ExponentialMovingAverage

Detailed Description

Definition at line 151 of file sat/util.h.

Public Member Functions

 ExponentialMovingAverage (double decaying_factor)
 
double CurrentAverage () const
 
int64 NumRecords () const
 
void AddData (double new_record)
 

Constructor & Destructor Documentation

◆ ExponentialMovingAverage()

ExponentialMovingAverage ( double  decaying_factor)
inlineexplicit

Definition at line 153 of file sat/util.h.

Member Function Documentation

◆ AddData()

void AddData ( double  new_record)

Definition at line 73 of file sat/util.cc.

◆ CurrentAverage()

double CurrentAverage ( ) const
inline

Definition at line 160 of file sat/util.h.

◆ NumRecords()

int64 NumRecords ( ) const
inline

Definition at line 163 of file sat/util.h.


The documentation for this class was generated from the following files: