File Coverage

blib/lib/CLI/Coin/Toss.pm
Criterion Covered Total %
statement 8 8 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 11 11 100.0


line stmt bran cond sub pod time code
1             package CLI::Coin::Toss;
2              
3 1     1   51514 use 5.006;
  1         3  
4 1     1   3 use strict;
  1         2  
  1         14  
5 1     1   4 use warnings;
  1         2  
  1         41  
6              
7             =head1 NAME
8              
9             CLI::Coin::Toss - Several random number generators by CLI (Command Line Interface) are provided.
10              
11              
12             =head1 VERSION
13              
14             Version 0.32
15              
16             =cut
17              
18             our $VERSION = '0.32';
19              
20              
21             =head1 SYNOPSIS
22              
23             cointoss -- Bernoulli/Binomial
24             saikoro -- uniform distributions
25              
26             boxmuller -- generate normal distribution (so-called Gauss distribution)
27             cauchydist -- Cauchy distribution (Student's t-distribution with d.f. = 1 )
28             randexp -- Exponential distributions and also Laplace distributions
29             poisson -- Poisson distriution
30              
31             entropy -- calculates entropy
32             quantiles -- calculates quantiles
33              
34             The guide to use these commands can be found by "--help", such as 'cointoss --help'.
35              
36             =head1 AUTHOR
37              
38             "Toshiyuki Shimono", C<< >>
39              
40             =head1 SUPPORT
41              
42             You can find documentation for this module with the perldoc command.
43              
44             perldoc CLI::Coin::Toss
45              
46              
47             The next version may contain the random variable generator of Student's t distribution
48             with the degree of freedom being 2. It is because the following theorem is curious.
49              
50             For real numbers v1 and v2 given, and random variable v1 and v2 both come
51             from the t-distribution with the degree of freedom = 2,
52             Prob ( | v1*r1 | > |v2*r2| ) : Prob ( | v1*r1| < |v2*r2| ) = v1 : v2 holds.
53              
54              
55             =head1 LICENSE AND COPYRIGHT
56              
57             Copyright 2018 "Toshiyuki Shimono".
58              
59             This program is free software: you can redistribute it and/or modify
60             it under the terms of the GNU General Public License as published by
61             the Free Software Foundation, either version 3 of the License, or
62             (at your option) any later version.
63              
64             This program is distributed in the hope that it will be useful,
65             but WITHOUT ANY WARRANTY; without even the implied warranty of
66             MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
67             GNU General Public License for more details.
68              
69             You should have received a copy of the GNU General Public License
70             along with this program. If not, see L.
71              
72              
73             =cut
74              
75             1; # End of CLI::Coin::Toss