ewoksndreg.math.fit1d.linfit_zerointercept#
- ewoksndreg.math.fit1d.linfit_zerointercept(x, y, errors=False, vare=None)[source]#
Linear fit with zero intercept
\[ \begin{align}\begin{aligned}y = m.x + e\\E(e) = 0\end{aligned}\end{align} \]- Args:
x(array): (m) y(array): (m) errors(Optional(bool)): return solution with estimated error vare(array): variance on e (m)
- Returns:
m(array): solution stdm(array): optional error