ExponentialSmoothing

class ExponentialSmoothing<V : Vector<V>>(alpha: Double)

Exponential smoothing is a trivial way of smoothing signals. Let s(t) be the smoothed signal at time t, given a discrete signal g: s(t) = alpha * g(t) + (1 - alpha) * s(t-1) s(0) = g(0)

Constructors

Link copied to clipboard
fun ExponentialSmoothing(alpha: Double)

Functions

Link copied to clipboard
fun apply(current: V): V

Applies the smoothing to the given force.