addSample

open fun addSample(sample: Double)

Add a sample and calculate a new average.