aboutsummaryrefslogtreecommitdiff
path: root/math/bevington/pgauss.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/pgauss.f
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'math/bevington/pgauss.f')
-rw-r--r--math/bevington/pgauss.f25
1 files changed, 25 insertions, 0 deletions
diff --git a/math/bevington/pgauss.f b/math/bevington/pgauss.f
new file mode 100644
index 00000000..56cf5d4e
--- /dev/null
+++ b/math/bevington/pgauss.f
@@ -0,0 +1,25 @@
+c function pgauss.f
+c
+c source
+c Bevington, page 45.
+c
+c purpose
+c evaluate gaussian probability function
+c
+c usage
+c result = pgauss (x, averag, sigma)
+c
+c description of parameters
+c x - value for which probability is to be evaluated
+c averag - mean of distribution
+c sigma - standard deviation of distribution
+c
+c subroutines and function subprograms required
+c none
+c
+ function pgauss (x,averag,sigma)
+ double precision z
+1 z=(x-averag)/sigma
+2 pgauss=0.3989422804/sigma*dexp(-(z**2)/2.)
+ return
+ end