Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:perl:CPAN-S
perl-Statistics-Sampler-Multinomial
perl-Statistics-Sampler-Multinomial.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-Statistics-Sampler-Multinomial.spec of Package perl-Statistics-Sampler-Multinomial
# # spec file for package perl-Statistics-Sampler-Multinomial # # Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define cpan_name Statistics-Sampler-Multinomial Name: perl-Statistics-Sampler-Multinomial Version: 1.02 Release: 0 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Generate multinomial samples using the conditional binomial method URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/S/SL/SLAFFAN/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Clone) BuildRequires: perl(Devel::Symdump) BuildRequires: perl(List::MoreUtils) BuildRequires: perl(List::Util) >= 1.29 BuildRequires: perl(Math::Random::MT::Auto) BuildRequires: perl(Ref::Util) BuildRequires: perl(Test::Most) BuildRequires: perl(parent) BuildRequires: perl(rlib) Requires: perl(Clone) Requires: perl(List::MoreUtils) Requires: perl(List::Util) >= 1.29 Requires: perl(Math::Random::MT::Auto) Requires: perl(Ref::Util) Requires: perl(parent) %{perl_requires} %description Implements multinomial sampling using the conditional binomial method (the same algorithm as used in the GSL). Benchmarking shows it to be faster than the Alias method implemented in Statistics::Sampler::Multinomial::AliasMethod, presumably because the calls to the PRNG are inside XS and avoid perl subroutine overheads (and profiling showed the RNG calls to be the main bottleneck for the Alias method). There is a subclass that uses a hierarchical index for the draw() method in Statistics::Sampler::Multinomial::Indexed. For more details and background about the various approaches, see http://www.keithschwarz.com/darts-dice-coins. %prep %autosetup -n %{cpan_name}-%{version} find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644 %build perl Makefile.PL INSTALLDIRS=vendor %make_build %check make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %doc Changes README.md stats-sampler-multinomial.komodoproject %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor