line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::t2generate; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
47586
|
use 5.006; |
|
1
|
|
|
|
|
3
|
|
4
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
15
|
|
5
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
50
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 NAME |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
App::t2generate - The generator of random numbers obeying the Cauchy distribution (t distribution with df = 2). |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 VERSION |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
Version 0.24 |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=cut |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
our $VERSION = '0.24'; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 SYNOPSIS |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
t2generate [B<-g> how_many] [B<-s> seed] [B<-.> digits] [B<-1>] |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
t2generate [B<--help> [ja] ] [B<--version>] |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 DESCRIPTION |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
Generates random variables obeying the Cauchy distribution (same to the t distribution with df = 2). |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 OPTION |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=over 4 |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=item B<-g> N |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
The number of variables to be generated. |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=item B<-s> N |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Random seed specification. |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=item B<-.> N |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Digits after decimal points in the output. |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=item B<-1> |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
No secondary information such as seed and sums in the output. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=item B<--help> |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
Print this online help manual of this command "t2generate". Similar to "perldoc `which [-t] t2generate` ". |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=item B<--help ja> |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Shows Japanese online help manual. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=item B<--version> |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
Shows the version information of this program. |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=back |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 HISTORY |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
This program has been made since 2016-08-16 (Tue) |
67
|
|
|
|
|
|
|
as a part of TSV hacking toolset for table data. |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 AUTHOR |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
"Toshiyuki Shimono", C<< >> |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head1 BUGS |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
Please report any bugs or feature requests to C, or through |
77
|
|
|
|
|
|
|
the web interface at L. I will be notified, and then you'll |
78
|
|
|
|
|
|
|
automatically be notified of progress on your bug as I make changes. |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=head1 SUPPORT |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
You can find documentation for this module with the perldoc command. |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
perldoc App::t2generate |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
You can also look for information at: |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=over 4 |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=item * RT: CPAN's request tracker (report bugs here) |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
L |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=item * AnnoCPAN: Annotated CPAN documentation |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
L |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=item * CPAN Ratings |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
L |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
=item * Search CPAN |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
L |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
=back |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
=head1 ACKNOWLEDGEMENTS |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
Copyright 2018 "Toshiyuki Shimono". |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify |
121
|
|
|
|
|
|
|
it under the terms of the GNU General Public License as published by |
122
|
|
|
|
|
|
|
the Free Software Foundation, either version 3 of the License, or |
123
|
|
|
|
|
|
|
(at your option) any later version. |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful, |
126
|
|
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
127
|
|
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
128
|
|
|
|
|
|
|
GNU General Public License for more details. |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License |
131
|
|
|
|
|
|
|
along with this program. If not, see L. |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
=cut |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
1; # End of App::t2generate |