aboutsummaryrefslogtreecommitdiff
path: root/math/bevington/man/fchisq.3m
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /math/bevington/man/fchisq.3m
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'math/bevington/man/fchisq.3m')
-rw-r--r--math/bevington/man/fchisq.3m29
1 files changed, 29 insertions, 0 deletions
diff --git a/math/bevington/man/fchisq.3m b/math/bevington/man/fchisq.3m
new file mode 100644
index 00000000..0511409b
--- /dev/null
+++ b/math/bevington/man/fchisq.3m
@@ -0,0 +1,29 @@
+.TH FCHISQ 3M
+.SH NAME
+fchisq
+.SH DESCRIPTION
+function fchisq.f
+
+source
+ Bevington, page 194.
+
+purpose
+ evaluate reduced chi square for fit of data
+ fchisq = sum ((y-yfit)**2 / sigma**2) / nfree
+
+usage
+ result = fchisq (y, sigmay, npts, nfree, mode, yfit)
+
+description of parameters
+ y - array of data points
+ sigmay - array of standard deviations for data points
+ npts - number of data points
+ nfree - number of degrees of freedom
+ 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)
+ yfit - array of calculated values of y
+
+subroutines and function subprograms required
+ none