blib/lib/Math/Histo/Sketch.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond 75.0% 3 / 4 MC/DCmcdc 50.0% 1 / 2 Subroutinesub 100% 5 / 5 Podpod 100% 2 / 2 totaltotal 93.5% 29 / 31 CC 3 SCAR 6.2
CC
3
Cov
95%
new
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.9
« blib/lib/Math/Histo/Fit.pm ↑ Summary Histo.xs »
1 package Math::Histo::Sketch;
2  
3 11 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 11 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 11 ▶use Math::Histo ();
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 11 our $VERSION = '0.4.2';
8  
9  
10 2 ▶sub new {
Subroutine new: called CC=3 SCAR=11.0
Pod documented
11 2 my ($class, %args) = @_;
12 2 ▶ my $alpha = $args{alpha} // 0.01;
Condition50%1/2
$args{"alpha"} // "0.01"
l!l
20
MC/DC0%0/1
$args{"alpha"} // "0.01"
$args{"alpha"}
Truth table50%1/2
A
A= $args{"alpha"}
Aresult
11
00
13 2 ▶ my $max_bins = $args{max_bins} // 2048;
Condition100%2/2
$args{"max_bins"} // 2048
l!l
11
MC/DC100%1/1
$args{"max_bins"} // 2048
$args{"max_bins"}
Truth table100%2/2
A
A= $args{"max_bins"}
Aresult
11
00
14 2 return $class->_create($alpha, $max_bins);
15 }
16  
17 1 ▶sub from_binary {
Subroutine from_binary: called CC=1 SCAR=0.0
Pod documented
18 1 my ($class, $blob) = @_;
19 1 return $class->_deserialize_binary($blob);
20 }
21  
22 11 *insert_packed = \&insert_packed_f64;
23  
24 11 1;
25  
26  
27 __END__
« blib/lib/Math/Histo/Fit.pm ↑ Summary Histo.xs »