Test::StochasticTest::Stochastic is a Perl module to check probabilities of randomized methods. | |
Download |
Test::Stochastic Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Abhijit Mahabal
- Publisher web site:
- http://search.cpan.org/~amahabal/Test-Stochastic-0.03/lib/Test/Stochastic.pm
Test::Stochastic Tags
Test::Stochastic Description
Test::Stochastic is a Perl module to check probabilities of randomized methods. Test::Stochastic is a Perl module to check probabilities of randomized methods.SYNOPSIS use Test::Stochastic qw(stochastic_ok); stochastic_ok sub { ...random sub...}, {a => 0.4, b => 0.6}; stochastic_ok {a => 0.4, b => 0.6}, sub { ...random sub...}; Test::Stochastic::setup(times => 100, tolerence => 0.1);This module can be used to check the probability distribution of answers given by a method. The code fragments in the synopsis above check that the subroutine passed to stochastic_ok returns a with probability 0.4, and b with probability 0.6.This module will work only if the return values are numbers or strings. Future versions will handle references as well. Requirements: · Perl
Test::Stochastic Related Software