Condition Coverage

blib/lib/PDL/Algorithm/Center.pm
Criterion Covered Total %
condition 24 40 60.0


and 3 conditions

line !l l&&!r l&&r condition
122 520 0 5 $current->sigma == $prev->sigma and PDL::all($current->center == $prev->center)
531 23 0 0 defined $opt->{'log'} and not is_coderef($opt->log)
581 10 5 5 defined $opt->{'center'} and is_arrayref($opt->center)
1215 0 0 20 &is_Piddle1D(scalar $opt->center) and $opt->center->nelem == $ndims
1249 15 0 530 not $converged and ++$iteration <= $opt->iterlim

or 2 conditions

line l !l condition
162 0 0 $iter->clip // "undef"
529 8 15 $opt->{'iterlim'} //= 10
606 5 10 $opt->{'center'} //= \&PDL::Algorithm::Center::_weighted_mean_center
1181 0 20 $opt->{'log'} //= undef
1182 0 20 $opt->{'save_mask'} //= 0
1183 0 20 $opt->{'save_weight'} //= 0
1184 2 18 $opt->{'mask'} //= undef
1185 3 17 $opt->{'weight'} //= undef

or 3 conditions

line l !l&&r !l&&!r condition
44 535 3 0 $total_weight //= $wmask->dsum
613 0 20 0 $opt->{'calc_wmask'} //= sub { _sigma_clip_calc_wmask($nsigma, @_); return; }
619 0 20 0 $opt->{'calc_center'} //= sub { my($coords, $mask, $weight, $iter) = @_; _weighted_mean_center($coords, $mask, $weight, $iter->total_weight); }