SlidingAverageTime.push

Adds current value to the time window history. Calculates the new average and returns it

This pushes the data accumulated using opUnary!"++", opOpAssign!"+" and opAssign to the list of values used to calculate the average.

Note: This should be called by a timer periodically according to the resolution given in the constructor

The parents class' push() method is not required or planned to be called when this class is used, none the less there might be rare usecases where it could be desired.

class SlidingAverageTime(T)
real
push
()

Return Value

Type: real

new average

Meta