From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- math/curfit/doc/cverrors.hlp | 53 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 math/curfit/doc/cverrors.hlp (limited to 'math/curfit/doc/cverrors.hlp') diff --git a/math/curfit/doc/cverrors.hlp b/math/curfit/doc/cverrors.hlp new file mode 100644 index 00000000..a0a0fbb2 --- /dev/null +++ b/math/curfit/doc/cverrors.hlp @@ -0,0 +1,53 @@ +.help cverrors Jun84 "Curfit Package" +.ih +NAME +cverrors -- calculate the standard deviation of the fit and errors +.ih +SYNOPSIS +cverrors (cv, y, weight, yfit, npts, chisqr, errors) + +.nf +pointer cv # curve descriptor +real y[] # array of y data points +weight weight[] # array of weights +real yfit[] # array of fitted data points +int npts # number of points +real chisqr # the standard deviation of the fit +real errors[] # standard deviations of the coefficients +.fi +.ih +ARGUMENTS +.ls cv +Pointer to the curve descriptor structure +.le +.ls y +Array of y data points +.le +.ls yfit +Array of fitted y values +.le +.ls npts +The number of points +.le +.ls chisqr +Reduced chi-squared of the fit. +.le +.ls errors +Array of standard deviations of the coefficients. +.le +.ih +DESCRIPTION +Calculate the reduced chi-squared of the fit and the standard deviation +of the coefficients. +.ih +NOTES +The standard deviation of the fit is the square root of the sum of the +weighted squares of the residuals divided by the number of degrees of freedom. +If the weights are equal, then the reduced chi-squared is the +variance of the fit +The error of the j-th coefficient is the square root of the j-th diagonal +element of the inverse of the data matrix. If the weights are equal to one, +then the errors are scaled by the square root of the variance of the data. +.ih +SEE ALSO +.endhelp -- cgit