aboutsummaryrefslogtreecommitdiff
path: root/math/bevington/ppoiss.f
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /math/bevington/ppoiss.f
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'math/bevington/ppoiss.f')
-rw-r--r--math/bevington/ppoiss.f23
1 files changed, 23 insertions, 0 deletions
diff --git a/math/bevington/ppoiss.f b/math/bevington/ppoiss.f
new file mode 100644
index 00000000..4782fde8
--- /dev/null
+++ b/math/bevington/ppoiss.f
@@ -0,0 +1,23 @@
+c function ppoiss.f
+c
+c source
+c Bevington, page 39.
+c
+c purpose
+c evaluate poisson probability function
+c
+c usage
+c result = ppoiss (nobs, averag)
+c
+c description of parameters
+c nobs - number of items observed
+c averag - mean of distribution
+c
+c subroutines and function subprograms required
+c factor (n)
+c calculates n factorial for integers
+c
+ function ppoiss (nobs,averag)
+1 ppoiss=((averag**nobs)/factor(nobs))*exp(-averag)
+ return
+ end