zero_order_fit

sofia_redux.toolkit.fitting.polynomial.zero_order_fit(data, error=None)[source]

Calculate the zeroth order polynomial coefficients and covariance

Basically an (optionally weighted) average.

Parameters:
dataarray_like of (int or float)
errorarray_like of (int or float), optional
Returns:
coefficients, covariancenumpy.ndarray, np.ndarray of float

Polynomial coefficient 0 (1,) and variance (1,).