ewoksndreg.math.fit1d.lstsq#

ewoksndreg.math.fit1d.lstsq(A, b, errors=False, vare=None, cove=None)[source]#

Solve the following linear system

\[ \begin{align}\begin{aligned}A.x = b + e\\E(e) = 0\end{aligned}\end{align} \]
Args:

A(array): (m x n) b(array): (m) errors(Optional(bool)): return solution with estimated error vare(array): variance on e (m) cove(array): covariance matrix of e (m x m)

Returns:

x(array): solution (n) stdx(array): optional errors (n)