r66787 - in /trunk/libstatistics-test-randomwalk-perl: ./ debian/ debian/source/ examples/ lib/Statistics/Test/
jawnsy-guest at users.alioth.debian.org
jawnsy-guest at users.alioth.debian.org
Sat Jan 1 15:45:59 UTC 2011
Author: jawnsy-guest
Date: Sat Jan 1 15:45:50 2011
New Revision: 66787
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=66787
Log:
* New upstream release
* Use new short debhelper rules format
* Standards-Version 3.9.1 (no changes)
* Refresh copyright information
* Use new 3.0 (quilt) source format
Added:
trunk/libstatistics-test-randomwalk-perl/debian/source/
trunk/libstatistics-test-randomwalk-perl/debian/source/format
trunk/libstatistics-test-randomwalk-perl/examples/comparison_integer.pl
- copied unchanged from r66785, branches/upstream/libstatistics-test-randomwalk-perl/current/examples/comparison_integer.pl
Modified:
trunk/libstatistics-test-randomwalk-perl/Changes
trunk/libstatistics-test-randomwalk-perl/MANIFEST
trunk/libstatistics-test-randomwalk-perl/META.yml
trunk/libstatistics-test-randomwalk-perl/Makefile.PL
trunk/libstatistics-test-randomwalk-perl/README
trunk/libstatistics-test-randomwalk-perl/debian/changelog
trunk/libstatistics-test-randomwalk-perl/debian/control
trunk/libstatistics-test-randomwalk-perl/debian/copyright
trunk/libstatistics-test-randomwalk-perl/debian/rules
trunk/libstatistics-test-randomwalk-perl/lib/Statistics/Test/RandomWalk.pm
Modified: trunk/libstatistics-test-randomwalk-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libstatistics-test-randomwalk-perl/Changes?rev=66787&op=diff
==============================================================================
--- trunk/libstatistics-test-randomwalk-perl/Changes (original)
+++ trunk/libstatistics-test-randomwalk-perl/Changes Sat Jan 1 15:45:50 2011
@@ -1,5 +1,8 @@
Revision history for Perl extension Statistics::Test::RandomWalk
+0.02 Fri Dec 31 19:00 2010
+ - Example for testing an integer RNG
+ - Add rescaling factor
+
0.01 Sat Jan 6 18:33 2007
- - original version
-
+ - original version
Modified: trunk/libstatistics-test-randomwalk-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libstatistics-test-randomwalk-perl/MANIFEST?rev=66787&op=diff
==============================================================================
--- trunk/libstatistics-test-randomwalk-perl/MANIFEST (original)
+++ trunk/libstatistics-test-randomwalk-perl/MANIFEST Sat Jan 1 15:45:50 2011
@@ -1,5 +1,6 @@
Changes
examples/comparison.pl
+examples/comparison_integer.pl
lib/Statistics/Test/RandomWalk.pm
Makefile.PL
MANIFEST This list of files
Modified: trunk/libstatistics-test-randomwalk-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libstatistics-test-randomwalk-perl/META.yml?rev=66787&op=diff
==============================================================================
--- trunk/libstatistics-test-randomwalk-perl/META.yml (original)
+++ trunk/libstatistics-test-randomwalk-perl/META.yml Sat Jan 1 15:45:50 2011
@@ -1,16 +1,25 @@
--- #YAML:1.0
-name: Statistics-Test-RandomWalk
-version: 0.01
-abstract: Random Walk test for random numbers
-license: perl
-generated_by: ExtUtils::MakeMaker version 6.31
-distribution_type: module
-requires:
- Math::BigFloat: 0
- Params::Util: 0
- Statistics::Test::Sequence: 0
-meta-spec:
- url: http://module-build.sourceforge.net/META-spec-v1.2.html
- version: 1.2
+name: Statistics-Test-RandomWalk
+version: 0.02
+abstract: Random Walk test for random numbers
author:
- Steffen Mueller <smueller at cpan.org>
+license: perl
+distribution_type: module
+configure_requires:
+ ExtUtils::MakeMaker: 0
+build_requires:
+ ExtUtils::MakeMaker: 0
+requires:
+ Class::XSAccessor: 1.05
+ Math::BigFloat: 0
+ Params::Util: 0
+ Statistics::Test::Sequence: 0
+no_index:
+ directory:
+ - t
+ - inc
+generated_by: ExtUtils::MakeMaker version 6.55_02
+meta-spec:
+ url: http://module-build.sourceforge.net/META-spec-v1.4.html
+ version: 1.4
Modified: trunk/libstatistics-test-randomwalk-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libstatistics-test-randomwalk-perl/Makefile.PL?rev=66787&op=diff
==============================================================================
--- trunk/libstatistics-test-randomwalk-perl/Makefile.PL (original)
+++ trunk/libstatistics-test-randomwalk-perl/Makefile.PL Sat Jan 1 15:45:50 2011
@@ -10,6 +10,7 @@
Params::Util => '0',
Math::BigFloat => '0',
Statistics::Test::Sequence => '0',
+ Class::XSAccessor => '1.05',
}, # e.g., Module::Name => 1.1
($] >= 5.005 ? ## Add these new keywords supported since 5.005
(ABSTRACT_FROM => 'lib/Statistics/Test/RandomWalk.pm', # retrieve abstract from module
Modified: trunk/libstatistics-test-randomwalk-perl/README
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libstatistics-test-randomwalk-perl/README?rev=66787&op=diff
==============================================================================
--- trunk/libstatistics-test-randomwalk-perl/README (original)
+++ trunk/libstatistics-test-randomwalk-perl/README Sat Jan 1 15:45:50 2011
@@ -23,6 +23,13 @@
METHODS
new
Creates a new random number tester.
+
+ set_rescale_factor
+ The default range of the random numbers [0, 1) can be rescaled by a
+ constant factor. This method is the setter for that factor.
+
+ rescale_factor
+ Returns the current rescaling factor.
set_data
Sets the random numbers to operate on. First argument must be either an
@@ -84,7 +91,7 @@
Steffen Mueller, <smueller at cpan.org>
COPYRIGHT AND LICENSE
- Copyright (C) 2007 by Steffen Mueller
+ Copyright (C) 2007-2010 by Steffen Mueller
This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself, either Perl version 5.6 or, at your
Modified: trunk/libstatistics-test-randomwalk-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libstatistics-test-randomwalk-perl/debian/changelog?rev=66787&op=diff
==============================================================================
--- trunk/libstatistics-test-randomwalk-perl/debian/changelog (original)
+++ trunk/libstatistics-test-randomwalk-perl/debian/changelog Sat Jan 1 15:45:50 2011
@@ -1,4 +1,11 @@
-libstatistics-test-randomwalk-perl (0.01-2) UNRELEASED; urgency=low
+libstatistics-test-randomwalk-perl (0.02-1) UNRELEASED; urgency=low
+
+ [ Jonathan Yu ]
+ * New upstream release
+ * Use new short debhelper rules format
+ * Standards-Version 3.9.1 (no changes)
+ * Refresh copyright information
+ * Use new 3.0 (quilt) source format
[ Nathan Handler ]
* debian/watch: Update to ignore development releases.
@@ -11,7 +18,7 @@
[ Ryan Niebur ]
* Update jawnsy's email address
- -- Ryan Niebur <ryanryan52 at gmail.com> Tue, 01 Sep 2009 21:19:40 -0700
+ -- Jonathan Yu <jawnsy at cpan.org> Sat, 01 Jan 2011 11:02:14 -0500
libstatistics-test-randomwalk-perl (0.01-1) unstable; urgency=low
Modified: trunk/libstatistics-test-randomwalk-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libstatistics-test-randomwalk-perl/debian/control?rev=66787&op=diff
==============================================================================
--- trunk/libstatistics-test-randomwalk-perl/debian/control (original)
+++ trunk/libstatistics-test-randomwalk-perl/debian/control Sat Jan 1 15:45:50 2011
@@ -2,20 +2,26 @@
Section: perl
Priority: optional
Build-Depends: debhelper (>= 7)
-Build-Depends-Indep: libparams-util-perl, libstatistics-test-sequence-perl,
- libtest-pod-perl, libtest-pod-coverage-perl, perl
+Build-Depends-Indep: perl,
+ libclass-xsaccessor-perl,
+ libparams-util-perl,
+ libstatistics-test-sequence-perl,
+ libtest-pod-coverage-perl,
+ libtest-pod-perl
Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
Uploaders: Jonathan Yu <jawnsy at cpan.org>
-Standards-Version: 3.8.1
+Standards-Version: 3.9.1
Homepage: http://search.cpan.org/dist/Statistics-Test-RandomWalk/
Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libstatistics-test-randomwalk-perl/
Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libstatistics-test-randomwalk-perl/
Package: libstatistics-test-randomwalk-perl
Architecture: all
-Depends: ${misc:Depends}, ${perl:Depends}, libparams-util-perl,
- libstatistics-test-sequence-perl
-Description: Perl module to perform a Random Walk statistical test
+Depends: ${misc:Depends}, ${perl:Depends},
+ libclass-xsaccessor-perl,
+ libparams-util-perl,
+ libstatistics-test-sequence-perl
+Description: module to perform a Random Walk statistical test
Statistics::Test::RandomWalk implements a Random Walk test of a random number
generator as outlined in Blobel et al. Basically, it tests that the numbers
(in the interval between 0 and 1) generated by a random number generator are
Modified: trunk/libstatistics-test-randomwalk-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libstatistics-test-randomwalk-perl/debian/copyright?rev=66787&op=diff
==============================================================================
--- trunk/libstatistics-test-randomwalk-perl/debian/copyright (original)
+++ trunk/libstatistics-test-randomwalk-perl/debian/copyright Sat Jan 1 15:45:50 2011
@@ -1,28 +1,28 @@
-Format-Specification:
- http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=196
-Upstream-Maintainer: Steffen Mueller <smueller at cpan.org>
-Upstream-Source: http://search.cpan.org/dist/Statistics-Test-RandomWalk/
-Upstream-Name: Statistics-Test-RandomWalk
+Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135
+Maintainer: Steffen Mueller <smueller at cpan.org>
+Source: http://search.cpan.org/dist/Statistics-Test-RandomWalk/
+Name: Statistics-Test-RandomWalk
Files: *
Copyright: 2007, Steffen Mueller <smueller at cpan.org>
-License-Alias: Perl
-License: Artistic | GPL-1+
+License: Artistic or GPL-1+
Files: debian/*
-Copyright: 2009, Jonathan Yu <jon at aven.luminescent.ca>
-License: Artistic | GPL-1+
+Copyright: 2009-2011, Jonathan Yu <jawnsy at cpan.org>
+License: Artistic or GPL-1+
License: Artistic
- This program is free software; you can redistribute it and/or modify
- it under the terms of the Artistic License, which comes with Perl.
- On Debian GNU/Linux systems, the complete text of the Artistic License
- can be found in `/usr/share/common-licenses/Artistic'
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the Artistic License, which comes with Perl.
+ .
+ On Debian systems, the complete text of the Artistic License can be
+ found in `/usr/share/common-licenses/Artistic'.
License: GPL-1+
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 1, or (at your option)
- any later version.
- On Debian GNU/Linux systems, the complete text of the GNU General
- Public License can be found in `/usr/share/common-licenses/GPL'
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 1, or (at your option)
+ any later version.
+ .
+ On Debian systems, the complete text of version 1 of the GNU General
+ Public License can be found in `/usr/share/common-licenses/GPL-1'.
Modified: trunk/libstatistics-test-randomwalk-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libstatistics-test-randomwalk-perl/debian/rules?rev=66787&op=diff
==============================================================================
--- trunk/libstatistics-test-randomwalk-perl/debian/rules (original)
+++ trunk/libstatistics-test-randomwalk-perl/debian/rules Sat Jan 1 15:45:50 2011
@@ -1,23 +1,4 @@
#!/usr/bin/make -f
-build: build-stamp
-build-stamp:
- dh build
- touch $@
-
-clean:
+%:
dh $@
-
-install: install-stamp
-install-stamp: build-stamp
- dh install
- touch $@
-
-binary-arch:
-
-binary-indep: install
- dh $@
-
-binary: binary-arch binary-indep
-
-.PHONY: binary binary-arch binary-indep install clean build
Added: trunk/libstatistics-test-randomwalk-perl/debian/source/format
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libstatistics-test-randomwalk-perl/debian/source/format?rev=66787&op=file
==============================================================================
--- trunk/libstatistics-test-randomwalk-perl/debian/source/format (added)
+++ trunk/libstatistics-test-randomwalk-perl/debian/source/format Sat Jan 1 15:45:50 2011
@@ -1,0 +1,1 @@
+3.0 (quilt)
Modified: trunk/libstatistics-test-randomwalk-perl/lib/Statistics/Test/RandomWalk.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libstatistics-test-randomwalk-perl/lib/Statistics/Test/RandomWalk.pm?rev=66787&op=diff
==============================================================================
--- trunk/libstatistics-test-randomwalk-perl/lib/Statistics/Test/RandomWalk.pm (original)
+++ trunk/libstatistics-test-randomwalk-perl/lib/Statistics/Test/RandomWalk.pm Sat Jan 1 15:45:50 2011
@@ -4,13 +4,22 @@
use strict;
use warnings;
-our $VERSION = '0.01';
+our $VERSION = '0.02';
use Carp qw/croak/;
use Params::Util qw/_POSINT _ARRAY _CODE/;
use Memoize;
use Math::BigFloat;
use Statistics::Test::Sequence;
+use Class::XSAccessor {
+ constructor => 'new',
+ getters => {
+ rescale_factor => 'rescale',
+ },
+ setters => {
+ set_rescale_factor => 'rescale',
+ },
+};
=head1 NAME
@@ -39,26 +48,18 @@
=head1 METHODS
-=cut
-
=head2 new
Creates a new random number tester.
-=cut
-
-sub new {
- my $proto = shift;
- my $class = ref($proto)||$proto;
-
- my $self = {
- data => undef,
- };
-
- bless $self => $class;
-
- return $self;
-}
+=head2 set_rescale_factor
+
+The default range of the random numbers [0, 1) can be rescaled
+by a constant factor. This method is the setter for that factor.
+
+=head2 rescale_factor
+
+Returns the current rescaling factor.
=head2 set_data
@@ -125,6 +126,7 @@
if (not _POSINT($bins)) {
croak("Expecting number of bins as argument to 'test'");
}
+ my $rescale_factor = $self->rescale_factor||1;
my $data = $self->{data};
@@ -133,7 +135,7 @@
croak("Set data using 'set_data' first.");
}
- my $step = 1 / $bins;
+ my $step = 1 / $bins * $rescale_factor;
my @alpha;
push @alpha, $_*$step for 1..$bins;
@@ -171,10 +173,10 @@
}
}
- my @expected_smaller = map Math::BigFloat->new($numbers)*$_, @alpha;
+ my @expected_smaller = map Math::BigFloat->new($numbers)*$_/$rescale_factor, @alpha;
return(
- \@alpha,
+ [map $_/$rescale_factor, @alpha],
\@bins,
\@expected_smaller,
);
@@ -285,7 +287,7 @@
=head1 COPYRIGHT AND LICENSE
-Copyright (C) 2007 by Steffen Mueller
+Copyright (C) 2007-2010 by Steffen Mueller
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.6 or,
More information about the Pkg-perl-cvs-commits
mailing list