ewoksndreg.math.fit1d.lstsq_nonnegative#

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

Solve the following linear system

\[ \begin{align}\begin{aligned}A.x = b + e \quad x>=0\\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)

Returns:

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