record method
Implementation
void record(double value) {
longAvg = longAvg * (1 - _longFraction) + value * _longFraction;
shortAvg = shortAvg * (1 - _shortFraction) + value * _shortFraction;
min = math.min(value, min);
max = math.max(value, max);
}