aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
Diffstat (limited to 'math')
-rw-r--r--math/Makefile1
-rw-r--r--math/p5-Statistics-Contingency/Makefile31
-rw-r--r--math/p5-Statistics-Contingency/distinfo1
-rw-r--r--math/p5-Statistics-Contingency/pkg-descr14
-rw-r--r--math/p5-Statistics-Contingency/pkg-plist5
5 files changed, 52 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile
index 34c453867522..82713be4f6e3 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -138,6 +138,7 @@
SUBDIR += p5-Set-IntSpan
SUBDIR += p5-Set-Window
SUBDIR += p5-Statistics-ChiSquare
+ SUBDIR += p5-Statistics-Contingency
SUBDIR += p5-Statistics-Descriptive
SUBDIR += p5-Statistics-Distributions
SUBDIR += p5-Statistics-LTU
diff --git a/math/p5-Statistics-Contingency/Makefile b/math/p5-Statistics-Contingency/Makefile
new file mode 100644
index 000000000000..00acbb9cc30b
--- /dev/null
+++ b/math/p5-Statistics-Contingency/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: math/p5-Statistics-Contingency
+# Date created: Tue Dec 30 19:57:00 CST 2003
+# Whom: Cheng-Lung Sung <clsung@dragon2.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= Statistics-Contingency
+PORTVERSION= 0.06
+CATEGORIES= math perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= Statistics
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= clsung@dragon2.net
+COMMENT= Calculate precision, recall, F1, accuracy, etc
+
+BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Params/Validate.pm:${PORTSDIR}/devel/p5-Params-Validate
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+PERL_CONFIGURE= yes
+
+MAN3= Statistics::Contingency.3
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500601
+IGNORE= This port will require perl 5.6.x or later in the future. Install lang/perl5 then try again
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/math/p5-Statistics-Contingency/distinfo b/math/p5-Statistics-Contingency/distinfo
new file mode 100644
index 000000000000..a64df413d067
--- /dev/null
+++ b/math/p5-Statistics-Contingency/distinfo
@@ -0,0 +1 @@
+MD5 (Statistics-Contingency-0.06.tar.gz) = 270d65583f053b078af90359011fb5c9
diff --git a/math/p5-Statistics-Contingency/pkg-descr b/math/p5-Statistics-Contingency/pkg-descr
new file mode 100644
index 000000000000..c04dd38058e2
--- /dev/null
+++ b/math/p5-Statistics-Contingency/pkg-descr
@@ -0,0 +1,14 @@
+The "Statistics::Contingency" class helps you calculate several useful
+statistical measures based on 2x2 "contingency tables". I use these measures
+to help judge the results of automatic text categorization experiments, but
+they are useful in other situations as well.
+
+The general usage flow is to tally a whole bunch of results in the
+"Statistics::Contingency" object, then query that object to obtain the
+measures you are interested in. When all results have been collected, you
+can get a report on accuracy, precision, recall, F1, and so on, with both
+macro-averaging and micro-averaging over categories.
+
+WWW: http://search.cpan.org/dist/Statistics-Contingency
+
+Author: Ken Williams <kenw@ee.usyd.edu.au>
diff --git a/math/p5-Statistics-Contingency/pkg-plist b/math/p5-Statistics-Contingency/pkg-plist
new file mode 100644
index 000000000000..0cfd0b46b3ae
--- /dev/null
+++ b/math/p5-Statistics-Contingency/pkg-plist
@@ -0,0 +1,5 @@
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Statistics/Contingency/.packlist
+%%SITE_PERL%%/Statistics/Contingency.pm
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Statistics/Contingency
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Statistics 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/Statistics 2>/dev/null || true