scisalt.scipy.LinLsqFit¶
-
class
scisalt.scipy.LinLsqFit(y_unweighted, X_unweighted, y_error=None)[source]¶ Gets the linear least squares for
of a problem given
.As input, it takes y_unweighted as the measured
, X_unweighted for
, and y_error as the measurement error on
.Attributes
XThe
weighted properly by the errors from y_errorX_unweightedThe
.betaThe result
of the linear least squareschisq_redThe reduced chi-square of the linear least squares covarThe covariance matrix for the result 
yThe
weighted properly by the errors from y_errory_errorThe measured error of
of the problem
.y_fitUsing the result of the linear least squares, the result of 
y_unweightedThe
of the problem
.