From 60ed4f2d3acf2fe9d657e98f6e56bd1301abfb3e Mon Sep 17 00:00:00 2001 From: Zsolt Udvari Date: Fri, 25 Oct 2024 15:40:14 +0200 Subject: [PATCH] math/R-cran-mnormt: new port Functions are provided for computing the density and the distribution function of d-dimensional normal and "t" random variables, possibly truncated (on one side or two sides), and for generating random vectors sampled from these distributions, except sampling from the truncated "t". Moments of arbitrary order of a multivariate truncated normal are computed, and converted to cumulants up to order 4. Probabilities are computed via non-Monte Carlo methods; different routines are used in the case d=1, d=2, d=3, d>3, if d denotes the dimensionality. Required by update of math/R-cran-psych. --- math/Makefile | 1 + math/R-cran-mnormt/Makefile | 15 +++++++++++++++ math/R-cran-mnormt/distinfo | 3 +++ math/R-cran-mnormt/pkg-descr | 8 ++++++++ 4 files changed, 27 insertions(+) create mode 100644 math/R-cran-mnormt/Makefile create mode 100644 math/R-cran-mnormt/distinfo create mode 100644 math/R-cran-mnormt/pkg-descr diff --git a/math/Makefile b/math/Makefile index 6b9626e549fe..27e66e947eba 100644 --- a/math/Makefile +++ b/math/Makefile @@ -103,6 +103,7 @@ SUBDIR += R-cran-misc3d SUBDIR += R-cran-miscTools SUBDIR += R-cran-mitools + SUBDIR += R-cran-mnormt SUBDIR += R-cran-moments SUBDIR += R-cran-mvtnorm SUBDIR += R-cran-ncdf4 diff --git a/math/R-cran-mnormt/Makefile b/math/R-cran-mnormt/Makefile new file mode 100644 index 000000000000..bd2ee48f1739 --- /dev/null +++ b/math/R-cran-mnormt/Makefile @@ -0,0 +1,15 @@ +PORTNAME= mnormt +DISTVERSION= 2.1.1 +CATEGORIES= math +DISTNAME= ${PORTNAME}_${DISTVERSION} + +MAINTAINER= uzsolt@FreeBSD.org +COMMENT= Multivariate Normal and t Distributions +WWW= https://cran.r-project.org/web/packages/mnormt/index.html + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + +USES= cran:auto-plist,compiles + +.include diff --git a/math/R-cran-mnormt/distinfo b/math/R-cran-mnormt/distinfo new file mode 100644 index 000000000000..4a407b60c8e0 --- /dev/null +++ b/math/R-cran-mnormt/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1729790783 +SHA256 (mnormt_2.1.1.tar.gz) = 95fca70378af0afd5a388982ba5528f5b27e02157eeb9940a0a9762d11511308 +SIZE (mnormt_2.1.1.tar.gz) = 65806 diff --git a/math/R-cran-mnormt/pkg-descr b/math/R-cran-mnormt/pkg-descr new file mode 100644 index 000000000000..392a083722fd --- /dev/null +++ b/math/R-cran-mnormt/pkg-descr @@ -0,0 +1,8 @@ +Functions are provided for computing the density and the distribution function +of d-dimensional normal and "t" random variables, possibly truncated (on one +side or two sides), and for generating random vectors sampled from these +distributions, except sampling from the truncated "t". Moments of arbitrary +order of a multivariate truncated normal are computed, and converted to +cumulants up to order 4. Probabilities are computed via non-Monte Carlo methods; +different routines are used in the case d=1, d=2, d=3, d>3, if d denotes the +dimensionality.