Calculates min/average/max statistics based on the current and previous values.
name
value
void stats(String name, int value);