diff options
author | szptvlfn <szptvlfn@pkgsrc.org> | 2014-08-14 21:57:25 +0000 |
---|---|---|
committer | szptvlfn <szptvlfn@pkgsrc.org> | 2014-08-14 21:57:25 +0000 |
commit | 89b4b1cdf926a21017cb199eb369965a8a3c1d3a (patch) | |
tree | 8227690b0ac04d44806b07cdb99f7118768a5569 /math/hs-mwc-random | |
parent | 42cca5b029a118c011cec192904ee29ecb7de275 (diff) | |
download | pkgsrc-89b4b1cdf926a21017cb199eb369965a8a3c1d3a.tar.gz |
Import mwc-random-0.13.2.0 as math/hs-mwc-random,
packaged for wip.
This package contains code for generating high quality random numbers that
follow either a uniform or normal distribution. The generated numbers are
suitable for use in statistical applications.
The uniform PRNG uses Marsaglia's MWC256 (also known as MWC8222)
multiply-with-carry generator, which has a period of 2^8222 and fares well
in tests of randomness. It is also extremely fast, between 2 and 3 times
faster than the Mersenne Twister.
Compared to the mersenne-random package, this package has a more convenient
API, is faster, and supports more statistical distributions.
Diffstat (limited to 'math/hs-mwc-random')
-rw-r--r-- | math/hs-mwc-random/DESCR | 11 | ||||
-rw-r--r-- | math/hs-mwc-random/Makefile | 13 | ||||
-rw-r--r-- | math/hs-mwc-random/PLIST | 25 | ||||
-rw-r--r-- | math/hs-mwc-random/buildlink3.mk | 15 | ||||
-rw-r--r-- | math/hs-mwc-random/distinfo | 5 |
5 files changed, 69 insertions, 0 deletions
diff --git a/math/hs-mwc-random/DESCR b/math/hs-mwc-random/DESCR new file mode 100644 index 00000000000..c2cbe791105 --- /dev/null +++ b/math/hs-mwc-random/DESCR @@ -0,0 +1,11 @@ +This package contains code for generating high quality random numbers that +follow either a uniform or normal distribution. The generated numbers are +suitable for use in statistical applications. + +The uniform PRNG uses Marsaglia's MWC256 (also known as MWC8222) +multiply-with-carry generator, which has a period of 2^8222 and fares well +in tests of randomness. It is also extremely fast, between 2 and 3 times +faster than the Mersenne Twister. + +Compared to the mersenne-random package, this package has a more convenient +API, is faster, and supports more statistical distributions. diff --git a/math/hs-mwc-random/Makefile b/math/hs-mwc-random/Makefile new file mode 100644 index 00000000000..9d79cb3b96e --- /dev/null +++ b/math/hs-mwc-random/Makefile @@ -0,0 +1,13 @@ +# $NetBSD: Makefile,v 1.1 2014/08/14 21:57:25 szptvlfn Exp $ + +DISTNAME= mwc-random-0.13.2.0 +CATEGORIES= math + +MAINTAINER= szptvlfn@NetBSD.org +COMMENT= Fast, high quality pseudo random number generation +LICENSE= modified-bsd + +.include "../../mk/haskell.mk" +.include "../../devel/hs-primitive/buildlink3.mk" +.include "../../devel/hs-vector/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/math/hs-mwc-random/PLIST b/math/hs-mwc-random/PLIST new file mode 100644 index 00000000000..44cc0d2ae5f --- /dev/null +++ b/math/hs-mwc-random/PLIST @@ -0,0 +1,25 @@ +@comment $NetBSD: PLIST,v 1.1 2014/08/14 21:57:25 szptvlfn Exp $ +lib/mwc-random-${PKGVERSION}/${HASKELL_VERSION}/HSmwc-random-${PKGVERSION}.o +lib/mwc-random-${PKGVERSION}/${HASKELL_VERSION}/System/Random/MWC.hi +lib/mwc-random-${PKGVERSION}/${HASKELL_VERSION}/System/Random/MWC/CondensedTable.hi +lib/mwc-random-${PKGVERSION}/${HASKELL_VERSION}/System/Random/MWC/Distributions.hi +lib/mwc-random-${PKGVERSION}/${HASKELL_VERSION}/libHSmwc-random-${PKGVERSION}.a +lib/mwc-random-${PKGVERSION}/${HASKELL_VERSION}/package-description +share/doc/mwc-random-${PKGVERSION}/LICENSE +${PLIST.doc}share/doc/mwc-random-${PKGVERSION}/html/System-Random-MWC-CondensedTable.html +${PLIST.doc}share/doc/mwc-random-${PKGVERSION}/html/System-Random-MWC-Distributions.html +${PLIST.doc}share/doc/mwc-random-${PKGVERSION}/html/System-Random-MWC.html +${PLIST.doc}share/doc/mwc-random-${PKGVERSION}/html/doc-index.html +${PLIST.doc}share/doc/mwc-random-${PKGVERSION}/html/frames.html +${PLIST.doc}share/doc/mwc-random-${PKGVERSION}/html/haddock-util.js +${PLIST.doc}share/doc/mwc-random-${PKGVERSION}/html/hslogo-16.png +${PLIST.doc}share/doc/mwc-random-${PKGVERSION}/html/index-frames.html +${PLIST.doc}share/doc/mwc-random-${PKGVERSION}/html/index.html +${PLIST.doc}share/doc/mwc-random-${PKGVERSION}/html/mini_System-Random-MWC-CondensedTable.html +${PLIST.doc}share/doc/mwc-random-${PKGVERSION}/html/mini_System-Random-MWC-Distributions.html +${PLIST.doc}share/doc/mwc-random-${PKGVERSION}/html/mini_System-Random-MWC.html +${PLIST.doc}share/doc/mwc-random-${PKGVERSION}/html/minus.gif +${PLIST.doc}share/doc/mwc-random-${PKGVERSION}/html/mwc-random.haddock +${PLIST.doc}share/doc/mwc-random-${PKGVERSION}/html/ocean.css +${PLIST.doc}share/doc/mwc-random-${PKGVERSION}/html/plus.gif +${PLIST.doc}share/doc/mwc-random-${PKGVERSION}/html/synopsis.png diff --git a/math/hs-mwc-random/buildlink3.mk b/math/hs-mwc-random/buildlink3.mk new file mode 100644 index 00000000000..0ca0483a4d7 --- /dev/null +++ b/math/hs-mwc-random/buildlink3.mk @@ -0,0 +1,15 @@ +# $NetBSD: buildlink3.mk,v 1.1 2014/08/14 21:57:25 szptvlfn Exp $ + +BUILDLINK_TREE+= hs-mwc-random + +.if !defined(HS_MWC_RANDOM_BUILDLINK3_MK) +HS_MWC_RANDOM_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.hs-mwc-random+= hs-mwc-random>=0.13.2 +BUILDLINK_PKGSRCDIR.hs-mwc-random?= ../../math/hs-mwc-random + +.include "../../devel/hs-primitive/buildlink3.mk" +.include "../../devel/hs-vector/buildlink3.mk" +.endif # HS_MWC_RANDOM_BUILDLINK3_MK + +BUILDLINK_TREE+= -hs-mwc-random diff --git a/math/hs-mwc-random/distinfo b/math/hs-mwc-random/distinfo new file mode 100644 index 00000000000..a6a4c0f1232 --- /dev/null +++ b/math/hs-mwc-random/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2014/08/14 21:57:25 szptvlfn Exp $ + +SHA1 (mwc-random-0.13.2.0.tar.gz) = 1c984362ada4b5e9cb1121d828e30b0493f5f67e +RMD160 (mwc-random-0.13.2.0.tar.gz) = 05806d8b639ecdd200d9dd309e144c8f409d7c27 +Size (mwc-random-0.13.2.0.tar.gz) = 22008 bytes |