line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package cli::rows::venn; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
50374
|
use 5.006; |
|
1
|
|
|
|
|
4
|
|
4
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
15
|
|
5
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
40
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 NAME |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
cli::rows::venn -- showing the cardinal concerning superposition of 2,3 or 4 sets. |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
After this module is installed the following three CLIs are deployed. |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
venn2 |
14
|
|
|
|
|
|
|
venn3 -- not so good .. |
15
|
|
|
|
|
|
|
venn4 -- neat document does not entailed. |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
The author found that the Venn diagram drawing for 3 and 4 sets is |
18
|
|
|
|
|
|
|
sometimes quite important to understand the including relationship |
19
|
|
|
|
|
|
|
among the sets during the data analysis project. But drawing the |
20
|
|
|
|
|
|
|
diagram and filling the element numbers (cardinals) is really tedious |
21
|
|
|
|
|
|
|
work. This CLIs (Command Line Interface) help this work greatly. |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
One educational note: the Venn diagram for 3 sets is drawn only |
24
|
|
|
|
|
|
|
by regular circles, and the one for 4 sets is drawn by rectangles |
25
|
|
|
|
|
|
|
or ellipses. My program shows the element numbers of it as in the |
26
|
|
|
|
|
|
|
4 x 4 matrix. |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
Neatly showing about the information of element numbers over multiple |
29
|
|
|
|
|
|
|
sets considering superposition has various ways. The future version |
30
|
|
|
|
|
|
|
would try to implement in CLI. |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 VERSION |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
Version 0.001 |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=cut |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
our $VERSION = '0.001'; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
Copyright 2018 "Toshiyuki Shimono". |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify |
46
|
|
|
|
|
|
|
it under the terms of the GNU General Public License as published by |
47
|
|
|
|
|
|
|
the Free Software Foundation, either version 3 of the License, or |
48
|
|
|
|
|
|
|
(at your option) any later version. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful, |
51
|
|
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
52
|
|
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
53
|
|
|
|
|
|
|
GNU General Public License for more details. |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License |
56
|
|
|
|
|
|
|
along with this program. If not, see L. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=cut |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
1; # End of cli::rows::venn |