ScatterFit¶
- class ell1fit.spin_stats.ScatterFit(coeffs: ndarray, cov: ndarray, scatter: float, chi2: float, chi2_formal: float, dof: int)[source]¶
Bases:
objectA polynomial fit with intrinsic scatter; see
fit_polynomial_with_scatter().Attributes Summary
chi-squared with the scatter included (= dof unless scatter is 0)
chi-squared with the measurement errors alone
ascending order: y = c0 + c1 x + c2 x^2 ...
covariance of
coeffs, with the scatter includedintrinsic scatter added in quadrature, in units of y
Methods Summary
__call__(x)Call self as a function.
Attributes Documentation
- chi2: float = <dataclasses._MISSING_TYPE object>¶
chi-squared with the scatter included (= dof unless scatter is 0)
- chi2_formal: float = <dataclasses._MISSING_TYPE object>¶
chi-squared with the measurement errors alone
- errors¶
- scatter: float = <dataclasses._MISSING_TYPE object>¶
intrinsic scatter added in quadrature, in units of y
Methods Documentation