calculate

fun calculate(newValue: Double): Double(source)

Updates the filter with a new sample and returns the filtered value.