[][src]Function filter::gh::least_squares_parameters

pub fn least_squares_parameters<T: FloatCore>(n: T) -> (T, T)

An order 1 least squared filter can be computed by a g-h filter by varying g and h over time according to the formulas below, where the first measurement is at n=0, the second is at n=1, and so on: