line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CLI::Numbers::Hack; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
48744
|
use 5.006; |
|
1
|
|
|
|
|
3
|
|
4
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
14
|
|
5
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
46
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 NAME |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
CLI::Numbers::Hack - commands for handling a bunch of numbers for `finding denominator', `N-th min/max', `cumulative sum' and so on. |
10
|
|
|
|
|
|
|
=head1 VERSION |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
Version 0.22 |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=cut |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
our $VERSION = '0.22'; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 SYNOPSIS |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
PROVIDED COMMAND LINE INTERFACE programs : |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1. nums -- an expansion of the Unix/Linux command `seq'. |
24
|
|
|
|
|
|
|
2. cumsum -- shows the cumulative sum for a sequence of numbers separated by line ends. |
25
|
|
|
|
|
|
|
3. minmax -- shows the N-th minimums and N-th maximums of a number sequence. |
26
|
|
|
|
|
|
|
4. denomfind -- helps to find the common denominator from bunch of decimals. Useful to find N of a questionnaire results. |
27
|
|
|
|
|
|
|
4. rounding -- outputs the rounded numbers. (The name of this command would change in the future.. ) |
28
|
|
|
|
|
|
|
5. zeropad -- outputs the zero-padded numbers. |
29
|
|
|
|
|
|
|
6. meanvar -- shows the mean (average) and the variance of a sequence of numbers. |
30
|
|
|
|
|
|
|
7. quantile -- shows the quantile values. |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
All programs provides help-manual that is availble such as by "cumsum --help". |
33
|
|
|
|
|
|
|
If you want to see only "switch options", do "cumsum --help opt(ions)". |
34
|
|
|
|
|
|
|
Sorry the most part of the manual is written only in Japanese. |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Some commands are immature in user interface (such as `denomfind') (the the version number is low) |
37
|
|
|
|
|
|
|
but the author just want to provide these commands above for some good usage. |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Copyright 2018 "Toshiyuki Shimono". |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify |
45
|
|
|
|
|
|
|
it under the terms of the GNU General Public License as published by |
46
|
|
|
|
|
|
|
the Free Software Foundation, either version 3 of the License, or |
47
|
|
|
|
|
|
|
(at your option) any later version. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful, |
50
|
|
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
51
|
|
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
52
|
|
|
|
|
|
|
GNU General Public License for more details. |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License |
55
|
|
|
|
|
|
|
along with this program. If not, see L. |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=cut |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
1; # End of CLI::Numbers::Hack |