ewoksndreg.math.fit1d.lstsq_bound#
- ewoksndreg.math.fit1d.lstsq_bound(A, b, lb, ub, errors=False, vare=None)[source]#
Solve the following linear system
\[ \begin{align}\begin{aligned}A.x = b + e \quad lb<=x<=ub\\E(e) = 0\end{aligned}\end{align} \]- Args:
A(array): (m x n) b(array): (m) lb(num): lower bound ub(num): upper bound errors(Optional(bool)): return solution with estimated error vare(array): variance on e (m)
- Returns:
x(array): solution (n) stdx(array): optional errors (n)