Function ndarray::linalg::least_squares
[−]
[src]
pub fn least_squares<A: ComplexField>(a: &Mat<A>, b: &Col<A>) -> Col<A>
Solve a x = b with linear least squares approximation.
It is used to find the best fit for an overdetermined system, i.e. the number of rows in a is larger than the number of unknowns x.
Return best fit for x.