pynrc.reduce.calib.chisqr_red¶
- pynrc.reduce.calib.chisqr_red(yvals, yfit=None, err=None, dof=None, err_func=<function std>)[source]¶
Calculate reduced chi square metric
If yfit is None, then yvals assumed to be residuals. In this case, err should be specified.
- Parameters
yvals (ndarray) – Sampled values.
yfit (ndarray) – Model fit corresponding to yvals.
dof (int) – Number of degrees of freedom (nvals - nparams - 1).
err (ndarray or float) – Uncertainties associated with yvals. If not specified, then use yvals point-to-point differences to estimate a single value for the uncertainty.
err_func (func) – Error function uses to estimate err.