Branch Coverage

blib/lib/Statistics/ROC.pm
Criterion Covered Total %
branch 65 98 66.3


line true false branch
57 0 145 if ($x == 0)
59 80 65 if ($x < 7) { }
113 0 158 if ($p <= 0 or $q <= 0)
114 0 158 if ($x < 0 or $x > 1)
118 19 139 if ($p < $psq * $x) { }
126 0 783 if ($ns == 0)
783 90 if ($ns >= 0) { }
135 19 139 if ($index) { }
144 0 1 if ($x == 1) { }
0 1 elsif ($x == 0) { }
153 47 0 if ($a > $b) { }
204 0 47 if ($p <= 0 or $q <= 0)
205 0 47 if ($alpha < 0 or $alpha > 1)
206 0 47 if ($alpha == 0 or $alpha == 1)
209 17 30 if ($alpha > 0.5) { }
215 31 16 if ($pp > 1 and $qq > 1) { }
226 0 16 if ($t <= 0) { }
231 4 12 if ($t <= 1) { }
239 0 47 if ($xinbta < 0.0001)
240 0 47 if ($xinbta > 0.9999)
244 0 157 if ($y == -1 or $y == -2)
246 0 157 if ($y * $y <= 0)
252 47 110 if ($prev <= $ACU or $y * $y <= $ACU)
253 0 110 if ($tx == 0 or $tx == 1)
258 17 30 if ($index) { }
271 0 47 if ($alpha == 1) { }
0 47 elsif ($alpha == 0) { }
306 21 39 if ($$r[$s[$i]] == $$r[$s[$i - 1]]) { }
18 21 elsif (@e) { }
309 6 12 if ($type eq 'mean')
314 13 26 if ($type eq 'high') { }
13 13 elsif ($type eq 'low') { }
13 0 elsif ($type eq 'mean') { }
348 0 18 if ($x > $$xx[$ju] || $x < $$xx[$jl] and $ascend)
350 0 18 if ($x < $$xx[$ju] || $x > $$xx[$jl] and not $ascend)
355 30 27 if ($x > $$xx[$jm] == $ascend) { }
385 0 0 if ($x > $$xx[$ju] || $x < $$xx[$jl] and $ascend)
387 0 0 if ($x < $$xx[$ju] || $x > $$xx[$jl] and not $ascend)
391 0 0 if ($ascend and $$xx[$index] < $x) { }
0 0 elsif (not $ascend and $$xx[$index] > $x) { }
414 0 6 if (@Statistics::ROC::xx != @Statistics::ROC::yy)
476 0 1 if ($conf >= 1 or $conf <= 0)
478 0 1 if ($model_type ne 'increase' and $model_type ne 'decrease')
486 7 7 if ($Statistics::ROC::val_grp[$i][1] == 1) { }
536 66 18 if $mat[$i][$j] != -1
537 66 18 if $mat[$i][$j] != -1
538 18 66 if $mat[$i][$j] == -1
539 18 66 if $mat[$i][$j] == -1
549 16 0 if ($model_type eq 'decrease') { }