Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Sep 1998 15:54:43 +0200 (CEST)
From:      tobez@plab.ku.dk
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/7865: new port: Library of Routines for Cumulative Distribution Functions
Message-ID:  <199809081354.PAA28127@lion.plab.ku.dk>

next in thread | raw e-mail | index | archive | help

>Number:         7865
>Category:       ports
>Synopsis:       new port: Library of Routines for Cumulative Distribution Functions
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep  8 07:00:00 PDT 1998
>Last-Modified:
>Originator:     Anton Berezin
>Organization:
>Release:        FreeBSD 2.2.7-RELEASE i386
>Environment:
>Description:

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

>How-To-Repeat:
>Fix:
	
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	libdcdflib
#	libdcdflib/pkg
#	libdcdflib/pkg/COMMENT
#	libdcdflib/pkg/PLIST
#	libdcdflib/pkg/DESCR
#	libdcdflib/Makefile
#	libdcdflib/patches
#	libdcdflib/patches/patch-aa
#	libdcdflib/files
#	libdcdflib/files/Makefile.lib
#	libdcdflib/files/md5
#
echo c - libdcdflib
mkdir -p libdcdflib > /dev/null 2>&1
echo c - libdcdflib/pkg
mkdir -p libdcdflib/pkg > /dev/null 2>&1
echo x - libdcdflib/pkg/COMMENT
sed 's/^X//' >libdcdflib/pkg/COMMENT << 'END-of-libdcdflib/pkg/COMMENT'
XLibrary of C Routines for Cumulative Distribution Functions
END-of-libdcdflib/pkg/COMMENT
echo x - libdcdflib/pkg/PLIST
sed 's/^X//' >libdcdflib/pkg/PLIST << 'END-of-libdcdflib/pkg/PLIST'
Xinclude/dcdflib.h
Xlib/libdcdflib.a
Xlib/libdcdflib_p.a
Xlib/libdcdflib.so.1.1
X@exec /sbin/ldconfig -m %B
X@unexec /sbin/ldconfig -R
Xshare/doc/dcdflib/README
Xshare/doc/dcdflib/dcdflib.chs
Xshare/doc/dcdflib/dcdflib.fdoc
X@dirrm share/doc/dcdflib
END-of-libdcdflib/pkg/PLIST
echo x - libdcdflib/pkg/DESCR
sed 's/^X//' >libdcdflib/pkg/DESCR << 'END-of-libdcdflib/pkg/DESCR'
XThis  library  contains routines  to compute  cumulative  distribution
Xfunctions, inverses, and    parameters  of the  distribution  for  the
Xfollowing set of statistical distributions:
X
X    (1) Beta
X    (2) Binomial
X    (3) Chi-square
X    (4) Noncentral Chi-square
X    (5) F
X    (6) Noncentral F
X    (7) Gamma
X    (8) Negative Binomial
X    (9) Normal
X    (10) Poisson
X    (11) Student's t
X    (12) Noncentral t
END-of-libdcdflib/pkg/DESCR
echo x - libdcdflib/Makefile
sed 's/^X//' >libdcdflib/Makefile << 'END-of-libdcdflib/Makefile'
X# New ports collection makefile for:	dcdflib
X# Version required:	1.1
X# Date created:		08 September 1998
X# Whom:			Anton Berezin <tobez@plab.ku.dk>
X#
X# $Id$
X#
X
XDISTNAME=	dcdflib.c-1.1
XCATEGORIES=	math
XMASTER_SITES=	ftp://odin.mda.uth.tmc.edu/pub/source/
X
XMAINTAINER=	tobez@plab.ku.dk
X
XWRKSRC=		${WRKDIR}/dcdflib.c/src
X
Xpost-extract:
X	@${CP} ${FILESDIR}/Makefile.lib ${WRKSRC}/Makefile
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${PREFIX}/share/doc/dcdflib
X	@${INSTALL_DATA} ${WRKSRC}/../doc/dcdflib.chs ${PREFIX}/share/doc/dcdflib
X	@${INSTALL_DATA} ${WRKSRC}/../doc/dcdflib.fdoc ${PREFIX}/share/doc/dcdflib
X	@${INSTALL_DATA} ${WRKSRC}/../README ${PREFIX}/share/doc/dcdflib
X.endif
X	@${LDCONFIG} -m ${PREFIX}/lib
X
X.include <bsd.port.mk>
END-of-libdcdflib/Makefile
echo c - libdcdflib/patches
mkdir -p libdcdflib/patches > /dev/null 2>&1
echo x - libdcdflib/patches/patch-aa
sed 's/^X//' >libdcdflib/patches/patch-aa << 'END-of-libdcdflib/patches/patch-aa'
X--- ipmpar.c.orig	Tue Sep  8 14:19:45 1998
X+++ ipmpar.c	Tue Sep  8 14:11:24 1998
X@@ -1,426 +1,24 @@
X-int ipmpar(int*);
X-/*
X------------------------------------------------------------------------
X- 
X-     IPMPAR PROVIDES THE INTEGER MACHINE CONSTANTS FOR THE COMPUTER
X-     THAT IS USED. IT IS ASSUMED THAT THE ARGUMENT I IS AN INTEGER
X-     HAVING ONE OF THE VALUES 1-10. IPMPAR(I) HAS THE VALUE ...
X- 
X-  INTEGERS.
X- 
X-     ASSUME INTEGERS ARE REPRESENTED IN THE N-DIGIT, BASE-A FORM
X- 
X-               SIGN ( X(N-1)*A**(N-1) + ... + X(1)*A + X(0) )
X- 
X-               WHERE 0 .LE. X(I) .LT. A FOR I=0,...,N-1.
X- 
X-     IPMPAR(1) = A, THE BASE.
X- 
X-     IPMPAR(2) = N, THE NUMBER OF BASE-A DIGITS.
X- 
X-     IPMPAR(3) = A**N - 1, THE LARGEST MAGNITUDE.
X- 
X-  FLOATING-POINT NUMBERS.
X- 
X-     IT IS ASSUMED THAT THE SINGLE AND DOUBLE PRECISION FLOATING
X-     POINT ARITHMETICS HAVE THE SAME BASE, SAY B, AND THAT THE
X-     NONZERO NUMBERS ARE REPRESENTED IN THE FORM
X- 
X-               SIGN (B**E) * (X(1)/B + ... + X(M)/B**M)
X- 
X-               WHERE X(I) = 0,1,...,B-1 FOR I=1,...,M,
X-               X(1) .GE. 1, AND EMIN .LE. E .LE. EMAX.
X- 
X-     IPMPAR(4) = B, THE BASE.
X- 
X-  SINGLE-PRECISION
X- 
X-     IPMPAR(5) = M, THE NUMBER OF BASE-B DIGITS.
X- 
X-     IPMPAR(6) = EMIN, THE SMALLEST EXPONENT E.
X- 
X-     IPMPAR(7) = EMAX, THE LARGEST EXPONENT E.
X- 
X-  DOUBLE-PRECISION
X- 
X-     IPMPAR(8) = M, THE NUMBER OF BASE-B DIGITS.
X- 
X-     IPMPAR(9) = EMIN, THE SMALLEST EXPONENT E.
X- 
X-     IPMPAR(10) = EMAX, THE LARGEST EXPONENT E.
X- 
X------------------------------------------------------------------------
X- 
X-     TO DEFINE THIS FUNCTION FOR THE COMPUTER BEING USED REMOVE
X-     THE COMMENT DELIMITORS FROM THE DEFINITIONS DIRECTLY BELOW THE NAME
X-     OF THE MACHINE
X- 
X------------------------------------------------------------------------
X- 
X-     IPMPAR IS AN ADAPTATION OF THE FUNCTION I1MACH, WRITTEN BY
X-     P.A. FOX, A.D. HALL, AND N.L. SCHRYER (BELL LABORATORIES).
X-     IPMPAR WAS FORMED BY A.H. MORRIS (NSWC). THE CONSTANTS ARE
X-     FROM BELL LABORATORIES, NSWC, AND OTHER SOURCES.
X- 
X------------------------------------------------------------------------
X-     .. Scalar Arguments ..
X-*/
X-int ipmpar(int *i)
X-{
X-static int imach[11];
X-static int ipmpar;
X-/*     MACHINE CONSTANTS FOR AMDAHL MACHINES. */
X-/*
X-   imach[1] = 2;
X-   imach[2] = 31;
X-   imach[3] = 2147483647;
X-   imach[4] = 16;
X-   imach[5] = 6;
X-   imach[6] = -64;
X-   imach[7] = 63;
X-   imach[8] = 14;
X-   imach[9] = -64;
X-   imach[10] = 63;
X-*/
X-/*     MACHINE CONSTANTS FOR THE AT&T 3B SERIES, AT&T
X-       PC 7300, AND AT&T 6300. */
X-/*
X-   imach[1] = 2;
X-   imach[2] = 31;
X-   imach[3] = 2147483647;
X-   imach[4] = 2;
X-   imach[5] = 24;
X-   imach[6] = -125;
X-   imach[7] = 128;
X-   imach[8] = 53;
X-   imach[9] = -1021;
X-   imach[10] = 1024;
X-*/
X-/*     MACHINE CONSTANTS FOR THE BURROUGHS 1700 SYSTEM. */
X-/*
X-   imach[1] = 2;
X-   imach[2] = 33;
X-   imach[3] = 8589934591;
X-   imach[4] = 2;
X-   imach[5] = 24;
X-   imach[6] = -256;
X-   imach[7] = 255;
X-   imach[8] = 60;
X-   imach[9] = -256;
X-   imach[10] = 255;
X-*/
X-/*     MACHINE CONSTANTS FOR THE BURROUGHS 5700 SYSTEM. */
X-/*
X-   imach[1] = 2;
X-   imach[2] = 39;
X-   imach[3] = 549755813887;
X-   imach[4] = 8;
X-   imach[5] = 13;
X-   imach[6] = -50;
X-   imach[7] = 76;
X-   imach[8] = 26;
X-   imach[9] = -50;
X-   imach[10] = 76;
X-*/
X-/*     MACHINE CONSTANTS FOR THE BURROUGHS 6700/7700 SYSTEMS. */
X-/*
X-   imach[1] = 2;
X-   imach[2] = 39;
X-   imach[3] = 549755813887;
X-   imach[4] = 8;
X-   imach[5] = 13;
X-   imach[6] = -50;
X-   imach[7] = 76;
X-   imach[8] = 26;
X-   imach[9] = -32754;
X-   imach[10] = 32780;
X-*/
X-/*     MACHINE CONSTANTS FOR THE CDC 6000/7000 SERIES
X-       60 BIT ARITHMETIC, AND THE CDC CYBER 995 64 BIT
X-       ARITHMETIC (NOS OPERATING SYSTEM). */
X-/*
X-   imach[1] = 2;
X-   imach[2] = 48;
X-   imach[3] = 281474976710655;
X-   imach[4] = 2;
X-   imach[5] = 48;
X-   imach[6] = -974;
X-   imach[7] = 1070;
X-   imach[8] = 95;
X-   imach[9] = -926;
X-   imach[10] = 1070;
X-*/
X-/*     MACHINE CONSTANTS FOR THE CDC CYBER 995 64 BIT
X-       ARITHMETIC (NOS/VE OPERATING SYSTEM). */
X-/*
X-   imach[1] = 2;
X-   imach[2] = 63;
X-   imach[3] = 9223372036854775807;
X-   imach[4] = 2;
X-   imach[5] = 48;
X-   imach[6] = -4096;
X-   imach[7] = 4095;
X-   imach[8] = 96;
X-   imach[9] = -4096;
X-   imach[10] = 4095;
X-*/
X-/*     MACHINE CONSTANTS FOR THE CRAY 1, XMP, 2, AND 3. */
X-/*
X-   imach[1] = 2;
X-   imach[2] = 63;
X-   imach[3] = 9223372036854775807;
X-   imach[4] = 2;
X-   imach[5] = 47;
X-   imach[6] = -8189;
X-   imach[7] = 8190;
X-   imach[8] = 94;
X-   imach[9] = -8099;
X-   imach[10] = 8190;
X-*/
X-/*     MACHINE CONSTANTS FOR THE DATA GENERAL ECLIPSE S/200. */
X-/*
X-   imach[1] = 2;
X-   imach[2] = 15;
X-   imach[3] = 32767;
X-   imach[4] = 16;
X-   imach[5] = 6;
X-   imach[6] = -64;
X-   imach[7] = 63;
X-   imach[8] = 14;
X-   imach[9] = -64;
X-   imach[10] = 63;
X-*/
X-/*     MACHINE CONSTANTS FOR THE HARRIS 220. */
X-/*
X-   imach[1] = 2;
X-   imach[2] = 23;
X-   imach[3] = 8388607;
X-   imach[4] = 2;
X-   imach[5] = 23;
X-   imach[6] = -127;
X-   imach[7] = 127;
X-   imach[8] = 38;
X-   imach[9] = -127;
X-   imach[10] = 127;
X-*/
X-/*     MACHINE CONSTANTS FOR THE HONEYWELL 600/6000
X-       AND DPS 8/70 SERIES. */
X-/*
X-   imach[1] = 2;
X-   imach[2] = 35;
X-   imach[3] = 34359738367;
X-   imach[4] = 2;
X-   imach[5] = 27;
X-   imach[6] = -127;
X-   imach[7] = 127;
X-   imach[8] = 63;
X-   imach[9] = -127;
X-   imach[10] = 127;
X-*/
X-/*     MACHINE CONSTANTS FOR THE HP 2100
X-       3 WORD DOUBLE PRECISION OPTION WITH FTN4 */
X-/*
X-   imach[1] = 2;
X-   imach[2] = 15;
X-   imach[3] = 32767;
X-   imach[4] = 2;
X-   imach[5] = 23;
X-   imach[6] = -128;
X-   imach[7] = 127;
X-   imach[8] = 39;
X-   imach[9] = -128;
X-   imach[10] = 127;
X-*/
X-/*     MACHINE CONSTANTS FOR THE HP 2100
X-       4 WORD DOUBLE PRECISION OPTION WITH FTN4 */
X-/*
X-   imach[1] = 2;
X-   imach[2] = 15;
X-   imach[3] = 32767;
X-   imach[4] = 2;
X-   imach[5] = 23;
X-   imach[6] = -128;
X-   imach[7] = 127;
X-   imach[8] = 55;
X-   imach[9] = -128;
X-   imach[10] = 127;
X-*/
X-/*     MACHINE CONSTANTS FOR THE HP 9000. */
X-/*
X-   imach[1] = 2;
X-   imach[2] = 31;
X-   imach[3] = 2147483647;
X-   imach[4] = 2;
X-   imach[5] = 24;
X-   imach[6] = -126;
X-   imach[7] = 128;
X-   imach[8] = 53;
X-   imach[9] = -1021;
X-   imach[10] = 1024;
X-*/
X-/*     MACHINE CONSTANTS FOR THE IBM 360/370 SERIES,
X-       THE ICL 2900, THE ITEL AS/6, THE XEROX SIGMA
X-       5/7/9 AND THE SEL SYSTEMS 85/86. */
X-/*
X-   imach[1] = 2;
X-   imach[2] = 31;
X-   imach[3] = 2147483647;
X-   imach[4] = 16;
X-   imach[5] = 6;
X-   imach[6] = -64;
X-   imach[7] = 63;
X-   imach[8] = 14;
X-   imach[9] = -64;
X-   imach[10] = 63;
X-*/
X-/*     MACHINE CONSTANTS FOR THE IBM PC. */
X-/*
X-   imach[1] = 2;
X-   imach[2] = 31;
X-   imach[3] = 2147483647;
X-   imach[4] = 2;
X-   imach[5] = 24;
X-   imach[6] = -125;
X-   imach[7] = 128;
X-   imach[8] = 53;
X-   imach[9] = -1021;
X-   imach[10] = 1024;
X-*/
X-/*     MACHINE CONSTANTS FOR THE MACINTOSH II - ABSOFT
X-       MACFORTRAN II. */
X-/*
X-   imach[1] = 2;
X-   imach[2] = 31;
X-   imach[3] = 2147483647;
X-   imach[4] = 2;
X-   imach[5] = 24;
X-   imach[6] = -125;
X-   imach[7] = 128;
X-   imach[8] = 53;
X-   imach[9] = -1021;
X-   imach[10] = 1024;
X-*/
X-/*     MACHINE CONSTANTS FOR THE MICROVAX - VMS FORTRAN. */
X-/*
X-   imach[1] = 2;
X-   imach[2] = 31;
X-   imach[3] = 2147483647;
X-   imach[4] = 2;
X-   imach[5] = 24;
X-   imach[6] = -127;
X-   imach[7] = 127;
X-   imach[8] = 56;
X-   imach[9] = -127;
X-   imach[10] = 127;
X-*/
X-/*     MACHINE CONSTANTS FOR THE PDP-10 (KA PROCESSOR). */
X-/*
X-   imach[1] = 2;
X-   imach[2] = 35;
X-   imach[3] = 34359738367;
X-   imach[4] = 2;
X-   imach[5] = 27;
X-   imach[6] = -128;
X-   imach[7] = 127;
X-   imach[8] = 54;
X-   imach[9] = -101;
X-   imach[10] = 127;
X-*/
X-/*     MACHINE CONSTANTS FOR THE PDP-10 (KI PROCESSOR). */
X-/*
X-   imach[1] = 2;
X-   imach[2] = 35;
X-   imach[3] = 34359738367;
X-   imach[4] = 2;
X-   imach[5] = 27;
X-   imach[6] = -128;
X-   imach[7] = 127;
X-   imach[8] = 62;
X-   imach[9] = -128;
X-   imach[10] = 127;
X-*/
X-/*     MACHINE CONSTANTS FOR THE PDP-11 FORTRAN SUPPORTING
X-       32-BIT INTEGER ARITHMETIC. */
X-/*
X-   imach[1] = 2;
X-   imach[2] = 31;
X-   imach[3] = 2147483647;
X-   imach[4] = 2;
X-   imach[5] = 24;
X-   imach[6] = -127;
X-   imach[7] = 127;
X-   imach[8] = 56;
X-   imach[9] = -127;
X-   imach[10] = 127;
X-*/
X-/*     MACHINE CONSTANTS FOR THE SEQUENT BALANCE 8000. */
X-/*
X-   imach[1] = 2;
X-   imach[2] = 31;
X-   imach[3] = 2147483647;
X-   imach[4] = 2;
X-   imach[5] = 24;
X-   imach[6] = -125;
X-   imach[7] = 128;
X-   imach[8] = 53;
X-   imach[9] = -1021;
X-   imach[10] = 1024;
X-*/
X-/*     MACHINE CONSTANTS FOR THE SILICON GRAPHICS IRIS-4D
X-       SERIES (MIPS R3000 PROCESSOR). */
X-/*
X-   imach[1] = 2;
X-   imach[2] = 31;
X-   imach[3] = 2147483647;
X-   imach[4] = 2;
X-   imach[5] = 24;
X-   imach[6] = -125;
X-   imach[7] = 128;
X-   imach[8] = 53;
X-   imach[9] = -1021;
X-   imach[10] = 1024;
X-*/
X-/*     MACHINE CONSTANTS FOR IEEE ARITHMETIC MACHINES, SUCH AS THE AT&T
X-       3B SERIES, MOTOROLA 68000 BASED MACHINES (E.G. SUN 3 AND AT&T
X-       PC 7300), AND 8087 BASED MICROS (E.G. IBM PC AND AT&T 6300). */
X-
X-   imach[1] = 2;
X-   imach[2] = 31;
X-   imach[3] = 2147483647;
X-   imach[4] = 2;
X-   imach[5] = 24;
X-   imach[6] = -125;
X-   imach[7] = 128;
X-   imach[8] = 53;
X-   imach[9] = -1021;
X-   imach[10] = 1024;
X+#include <float.h>
X+#include <limits.h>
X 
X-/*     MACHINE CONSTANTS FOR THE UNIVAC 1100 SERIES. */
X-/*
X-   imach[1] = 2;
X-   imach[2] = 35;
X-   imach[3] = 34359738367;
X-   imach[4] = 2;
X-   imach[5] = 27;
X-   imach[6] = -128;
X-   imach[7] = 127;
X-   imach[8] = 60;
X-   imach[9] = -1024;
X-   imach[10] = 1023;
X-*/
X-/*     MACHINE CONSTANTS FOR THE VAX 11/780. */
X-/*
X-   imach[1] = 2;
X-   imach[2] = 31;
X-   imach[3] = 2147483647;
X-   imach[4] = 2;
X-   imach[5] = 24;
X-   imach[6] = -127;
X-   imach[7] = 127;
X-   imach[8] = 56;
X-   imach[9] = -127;
X-   imach[10] = 127;
X-*/
X-    ipmpar = imach[*i];
X-    return ipmpar;
X+int ipmpar( int *i)
X+{
X+   static int imach[11] = {
X+      0, /* dummy zeroth index */
X+      /* integers */  
X+      2, /* base;  you are on the binary machine, aren't you? */
X+      sizeof(int)*(CHAR_BIT)-1,
X+      INT_MAX,
X+      /* all floats */
X+      FLT_RADIX,
X+      /* single precision floats */
X+      FLT_MANT_DIG,
X+      FLT_MIN_EXP,
X+      FLT_MAX_EXP,
X+      /* double precision floats */
X+      DBL_MANT_DIG,
X+      DBL_MIN_EXP,
X+      DBL_MAX_EXP,
X+   };
X+   return imach[*i];
X }
END-of-libdcdflib/patches/patch-aa
echo c - libdcdflib/files
mkdir -p libdcdflib/files > /dev/null 2>&1
echo x - libdcdflib/files/Makefile.lib
sed 's/^X//' >libdcdflib/files/Makefile.lib << 'END-of-libdcdflib/files/Makefile.lib'
X# makefile for dcdflib sources
X
XLIBDIR =	$(PREFIX)/lib
X
XSHLIB_MAJOR=	1
XSHLIB_MINOR=	1
XLIB=		dcdflib
X
XSRCS=		dcdflib.c ipmpar.c
XCFLAGS?=	-O2
X
Xbeforeinstall:
X	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/../doc/dcdflib.h \
X		${PREFIX}/include
X
X.include <bsd.lib.mk>
END-of-libdcdflib/files/Makefile.lib
echo x - libdcdflib/files/md5
sed 's/^X//' >libdcdflib/files/md5 << 'END-of-libdcdflib/files/md5'
XMD5 (dcdflib.c-1.1.tar.gz) = 98dea6ecdce280ab6c85697f516c3ec4
END-of-libdcdflib/files/md5
exit

>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809081354.PAA28127>