CFEL - ASG Software Suite
2.5.0
CASS
|
binary function for averaging. More...
#include <convenience_functions.h>
Public Member Functions | |
TimeAverage (float nEvents) | |
constructor. More... | |
float | operator() (float currentValue, float Average_Nm1) |
the operator calculates the average over the last _nEvents More... | |
Protected Attributes | |
float | _nEvents |
nEvents for the average calculation More... | |
binary function for averaging.
this operator performs a moving sum
Definition at line 112 of file convenience_functions.h.
|
inlineexplicit |
constructor.
initializes the nEvents value
nEvents | The number of Events used up to now |
Definition at line 121 of file convenience_functions.h.
|
inline |
the operator calculates the average over the last _nEvents
Definition at line 126 of file convenience_functions.h.
References _nEvents.
|
protected |
nEvents for the average calculation
Definition at line 136 of file convenience_functions.h.
Referenced by operator()().