summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjtb <jtb@pkgsrc.org>2001-04-17 00:19:57 +0000
committerjtb <jtb@pkgsrc.org>2001-04-17 00:19:57 +0000
commit1a26416ca6ff199392ac8e324a7dafff14de09d4 (patch)
tree291da55af8a980d3ccd3e2b6d4633663e3ffbe7e
parente18c696a1e3e740f77dfe79e14b77c8f4f2739e9 (diff)
downloadpkgsrc-1a26416ca6ff199392ac8e324a7dafff14de09d4.tar.gz
Initial import of dcdflib.f.
This library contains routines to compute cumulative distribution functions, inverses, and parameters of the distribution for the following set of statistical distributions: (1) Beta (2) Binomial (3) Chi-square (4) Noncentral Chi-square (5) F (6) Noncentral F (7) Gamma (8) Negative Binomial (9) Normal (10) Poisson (11) Student's t (12) Noncentral t Given values of all but one parameter of a distribution, the other is computed. These calculations are done with FORTRAN Double Precision variables.
-rw-r--r--math/dcdflib.f/Makefile20
-rw-r--r--math/dcdflib.f/files/md53
-rw-r--r--math/dcdflib.f/files/patch-sum4
-rw-r--r--math/dcdflib.f/patches/patch-aa29
-rw-r--r--math/dcdflib.f/patches/patch-ab31
-rw-r--r--math/dcdflib.f/pkg/DESCR20
-rw-r--r--math/dcdflib.f/pkg/PLIST6
7 files changed, 113 insertions, 0 deletions
diff --git a/math/dcdflib.f/Makefile b/math/dcdflib.f/Makefile
new file mode 100644
index 00000000000..7c6dfeb2b74
--- /dev/null
+++ b/math/dcdflib.f/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/04/17 00:19:57 jtb Exp $
+
+DISTNAME= dcdflib.f-1.1
+CATEGORIES= math
+MASTER_SITES= ftp://odin.mdacc.tmc.edu/pub/source/
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://odin.mdacc.tmc.edu/anonftp/page_2.html
+COMMENT= Library of Fortran Routines for Cumulative Distribution Functions
+
+USE_FORTRAN= yes
+
+WRKSRC= ${WRKDIR}/dcdflib.f/src
+
+post-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/dcdflib.f
+ ${INSTALL_DATA} ${WRKSRC}/../doc/* ${PREFIX}/share/doc/dcdflib.f
+ ${INSTALL_DATA} ${WRKSRC}/../README ${PREFIX}/share/doc/dcdflib.f
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/math/dcdflib.f/files/md5 b/math/dcdflib.f/files/md5
new file mode 100644
index 00000000000..9f000e15f2c
--- /dev/null
+++ b/math/dcdflib.f/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2001/04/17 00:19:57 jtb Exp $
+
+SHA1 (dcdflib.f-1.1.tar.gz) = 9b5d730a9f8ac46bb3e1b202c91c444382316dbb
diff --git a/math/dcdflib.f/files/patch-sum b/math/dcdflib.f/files/patch-sum
new file mode 100644
index 00000000000..b66f2bea309
--- /dev/null
+++ b/math/dcdflib.f/files/patch-sum
@@ -0,0 +1,4 @@
+$NetBSD: patch-sum,v 1.1.1.1 2001/04/17 00:19:57 jtb Exp $
+
+SHA1 (patch-aa) = c27575c82fcefa55df6d75449f4b112d7e3cdbe8
+SHA1 (patch-ab) = 45f4ccf4192da712a5cd8c64b37e3638e9fa6a7a
diff --git a/math/dcdflib.f/patches/patch-aa b/math/dcdflib.f/patches/patch-aa
new file mode 100644
index 00000000000..ec660b8565c
--- /dev/null
+++ b/math/dcdflib.f/patches/patch-aa
@@ -0,0 +1,29 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/04/17 00:19:57 jtb Exp $
+
+--- /dev/null Tue Apr 17 00:09:13 2001
++++ ipmpar.c
+@@ -0,0 +1,24 @@
++#include <float.h>
++#include <limits.h>
++#include <math.h>
++#include <stdio.h>
++
++int
++ipmpar_ (int *i)
++{
++ switch (*i) {
++ case 1: return 2;
++ case 2: return (sizeof(int)*(CHAR_BIT) - 1);
++ case 3: return INT_MAX;
++ case 4: return FLT_RADIX;
++ case 5: return FLT_MANT_DIG;
++ case 6: return FLT_MIN_EXP;
++ case 7: return FLT_MAX_EXP;
++ case 8: return DBL_MANT_DIG;
++ case 9: return DBL_MIN_EXP;
++ case 10: return FLT_MAX_EXP;
++ }
++ fprintf (stderr, "invalid argument: ipmpar(%ld)\n", *i);
++ exit (1);
++ return 0;
++}
diff --git a/math/dcdflib.f/patches/patch-ab b/math/dcdflib.f/patches/patch-ab
new file mode 100644
index 00000000000..5e105bcf5da
--- /dev/null
+++ b/math/dcdflib.f/patches/patch-ab
@@ -0,0 +1,31 @@
+$NetBSD: patch-ab,v 1.1.1.1 2001/04/17 00:19:57 jtb Exp $
+
+--- /dev/null Tue Apr 17 00:09:25 2001
++++ Makefile
+@@ -0,0 +1,26 @@
++LIB= dcdflib_f
++
++all: lib${LIB}.a
++
++OBJS= algdiv.o alngam.o alnrel.o apser.o basym.o bcorr.o betaln.o \
++ bfrac.o bgrat.o bpser.o bratio.o brcmp1.o brcomp.o bup.o \
++ cdfbet.o cdfbin.o cdfchi.o cdfchn.o cdff.o cdffnc.o cdfgam.o \
++ cdfnbn.o cdfnor.o cdfpoi.o cdft.o cdftnc.o cumbet.o cumbin.o \
++ cumchi.o cumchn.o cumf.o cumfnc.o cumgam.o cumnbn.o cumnor.o \
++ cumpoi.o cumt.o cumtnc.o devlpl.o dinvnr.o dinvr.o dt1.o \
++ dzror.o erf.o erfc1.o esum.o exparg.o fpser.o gam1.o gaminv.o \
++ gamln.o gamln1.o gamma.o grat1.o gratio.o gsumln.o ipmpar.o \
++ psi.o rcomp.o rexp.o rlog.o rlog1.o spmpar.o stvaln.o
++
++ipmpar.o:
++ ${CC} -c ipmpar.c -o $@
++
++lib${LIB}.a: ${OBJS}
++ ${AR} cr $@ $?
++ ${RANLIB} $@
++
++install: lib${LIB}.a
++ ${BSD_INSTALL_DATA} $? ${PREFIX}/lib
++
++clean:
++ rm -f *.o lib${LIB}.a
diff --git a/math/dcdflib.f/pkg/DESCR b/math/dcdflib.f/pkg/DESCR
new file mode 100644
index 00000000000..dd2587520c1
--- /dev/null
+++ b/math/dcdflib.f/pkg/DESCR
@@ -0,0 +1,20 @@
+This library contains routines to compute cumulative distribution
+functions, inverses, and parameters of the distribution for the
+following set of statistical distributions:
+
+ (1) Beta
+ (2) Binomial
+ (3) Chi-square
+ (4) Noncentral Chi-square
+ (5) F
+ (6) Noncentral F
+ (7) Gamma
+ (8) Negative Binomial
+ (9) Normal
+ (10) Poisson
+ (11) Student's t
+ (12) Noncentral t
+
+Given values of all but one parameter of a distribution, the other is
+computed. These calculations are done with FORTRAN Double Precision
+variables.
diff --git a/math/dcdflib.f/pkg/PLIST b/math/dcdflib.f/pkg/PLIST
new file mode 100644
index 00000000000..5f44b877a6b
--- /dev/null
+++ b/math/dcdflib.f/pkg/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/04/17 00:19:57 jtb Exp $
+lib/libdcdflib_f.a
+share/doc/dcdflib.f/README
+share/doc/dcdflib.f/dcdflib.chs
+share/doc/dcdflib.f/dcdflib.fdoc
+@dirrm share/doc/dcdflib.f