record method

void record(
  1. double value
)

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);
}