From owner-svn-ports-head@freebsd.org Sat Jul 28 13:15:37 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4EE7410515BE; Sat, 28 Jul 2018 13:15:37 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EE3668E18A; Sat, 28 Jul 2018 13:15:36 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C527627228; Sat, 28 Jul 2018 13:15:36 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w6SDFaOj006353; Sat, 28 Jul 2018 13:15:36 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w6SDFZMJ006348; Sat, 28 Jul 2018 13:15:35 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201807281315.w6SDFZMJ006348@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Sat, 28 Jul 2018 13:15:35 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r475556 - in head/math: . p5-Statistics-CaseResampling X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: in head/math: . p5-Statistics-CaseResampling X-SVN-Commit-Revision: 475556 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jul 2018 13:15:37 -0000 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 +# $FreeBSD$ + +PORTNAME= Statistics-CaseResampling +PORTVERSION= 0.15 +CATEGORIES= math perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@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 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