svn commit: r475556 - in head/math: . p5-Statistics-CaseResampling
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sat Jul 28 13:15:37 UTC 2018
Author: sunpoet
Date: Sat Jul 28 13:15:35 2018
New Revision: 475556
URL: https://svnweb.freebsd.org/changeset/ports/475556
Log:
Add p5-Statistics-CaseResampling 0.15
The purpose of this (XS) module is to calculate the median (or in principle also
other statistics) with confidence intervals on a sample. To do that, it uses a
technique called bootstrapping. In a nutshell, it resamples the sample a lot of
times and for each resample, it calculates the median. From the distribution of
medians, it then calculates the confidence limits.
In order to implement the confidence limit calculation, various other functions
had to be implemented efficiently (both algorithmically efficient and done in
C). These functions may be useful in their own right and are thus exposed to
Perl. Most notably, this exposes a median (and general selection) algorithm that
works in linear time as opposed to the trivial implementation that requires
O(n*log(n)).
WWW: https://metacpan.org/release/Statistics-CaseResampling
Added:
head/math/p5-Statistics-CaseResampling/
head/math/p5-Statistics-CaseResampling/Makefile (contents, props changed)
head/math/p5-Statistics-CaseResampling/distinfo (contents, props changed)
head/math/p5-Statistics-CaseResampling/pkg-descr (contents, props changed)
head/math/p5-Statistics-CaseResampling/pkg-plist (contents, props changed)
Modified:
head/math/Makefile
Modified: head/math/Makefile
==============================================================================
--- head/math/Makefile Sat Jul 28 13:09:36 2018 (r475555)
+++ head/math/Makefile Sat Jul 28 13:15:35 2018 (r475556)
@@ -595,6 +595,7 @@
SUBDIR += p5-Set-Window
SUBDIR += p5-Statistics-Basic
SUBDIR += p5-Statistics-Benford
+ SUBDIR += p5-Statistics-CaseResampling
SUBDIR += p5-Statistics-ChiSquare
SUBDIR += p5-Statistics-Contingency
SUBDIR += p5-Statistics-Descriptive
Added: head/math/p5-Statistics-CaseResampling/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/p5-Statistics-CaseResampling/Makefile Sat Jul 28 13:15:35 2018 (r475556)
@@ -0,0 +1,22 @@
+# Created by: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= Statistics-CaseResampling
+PORTVERSION= 0.15
+CATEGORIES= math perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= sunpoet at FreeBSD.org
+COMMENT= Efficient resampling and calculation of medians with confidence intervals
+
+LICENSE= ART10 GPLv1+
+LICENSE_COMB= dual
+
+USE_PERL5= configure
+USES= perl5
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Statistics/CaseResampling/CaseResampling.so
+
+.include <bsd.port.mk>
Added: head/math/p5-Statistics-CaseResampling/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/p5-Statistics-CaseResampling/distinfo Sat Jul 28 13:15:35 2018 (r475556)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1532715420
+SHA256 (Statistics-CaseResampling-0.15.tar.gz) = 851c43bd6f10d32289522a50c6a209c3b246cfd3eb566773e6861eda04a49087
+SIZE (Statistics-CaseResampling-0.15.tar.gz) = 58153
Added: head/math/p5-Statistics-CaseResampling/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/p5-Statistics-CaseResampling/pkg-descr Sat Jul 28 13:15:35 2018 (r475556)
@@ -0,0 +1,14 @@
+The purpose of this (XS) module is to calculate the median (or in principle also
+other statistics) with confidence intervals on a sample. To do that, it uses a
+technique called bootstrapping. In a nutshell, it resamples the sample a lot of
+times and for each resample, it calculates the median. From the distribution of
+medians, it then calculates the confidence limits.
+
+In order to implement the confidence limit calculation, various other functions
+had to be implemented efficiently (both algorithmically efficient and done in
+C). These functions may be useful in their own right and are thus exposed to
+Perl. Most notably, this exposes a median (and general selection) algorithm that
+works in linear time as opposed to the trivial implementation that requires
+O(n*log(n)).
+
+WWW: https://metacpan.org/release/Statistics-CaseResampling
Added: head/math/p5-Statistics-CaseResampling/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/p5-Statistics-CaseResampling/pkg-plist Sat Jul 28 13:15:35 2018 (r475556)
@@ -0,0 +1,3 @@
+%%SITE_ARCH%%/Statistics/CaseResampling.pm
+%%SITE_ARCH%%/auto/Statistics/CaseResampling/CaseResampling.so
+%%PERL5_MAN3%%/Statistics::CaseResampling.3.gz
More information about the svn-ports-all
mailing list