diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /math/bevington/man/linfit.3m | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'math/bevington/man/linfit.3m')
-rw-r--r-- | math/bevington/man/linfit.3m | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/math/bevington/man/linfit.3m b/math/bevington/man/linfit.3m new file mode 100644 index 00000000..e6e63f75 --- /dev/null +++ b/math/bevington/man/linfit.3m @@ -0,0 +1,33 @@ +.TH LINFIT 3M +.SH NAME +linfit +.SH DESCRIPTION +subroutine linfit.f + +source + Bevington, pages 104-105. + +purpose + make least-squares fit to a data set with a straight line + +usage + call linfit (x, y, sigmay, npts, mode, a, sigmaa, + b, sigmab, r) + +description of parameters + x - array of data points for independent variable + y - array of data points for dependent variable + sigmay - array of standard deviations for y data points + npts - number of pairs of data points + mode - determines method of weighting least-squares fit + +1 (instrumental) weight(i) = 1./sigmay(i)**2 + 0 (no weighting) weight(i) = 1. + -1 (statistical) weight(i) = 1./y(i) + a - y intercept of fitted straight line + sigmaa - standard deviation of a + b - slope of fitted straight line + sigmab - standard deviation of b + r - linear correlation coefficient + +subroutines and function subprograms required + none |