Branch Coverage

lib/PDL/Stats/Kmeans.pd
Criterion Covered Total %
branch 27 44 61.3


line true false branch
318 0 0 if $self->ndims > 1
334 0 3 if $_->dim(0) != 2
531 5 0 if ($opt)
532 1 4 if (defined $opt{'CNTRD'} and $opt{'CNTRD'}->nelem) { }
542 2 3 $self->badflag ? :
543 2 3 $self->badflag ? :
545 0 5 if $opt{'V'}
550 2 3 ref $opt{'NCLUS'} eq 'ARRAY' ? :
555 1 4 defined $opt{'CNTRD'} && $opt{'CNTRD'}->nelem ? :
564 4 5 $self->badflag ? :
567 0 9 if $opt{'V'}
578 0 5 if $opt{'FULL'}
588 2 3 if $R2->getndims == 1
673 1 22 if $var->badflag
674 0 23 wantarray ? :
726 1 0 if ($opt)
729 0 1 unless ($opt{'NCOMP'})
731 0 0 $self->dim(1) > 300 ? :
737 0 1 if ($opt{'PLOT'})
744 1 0 if ($opt{'ABS'}) { }
748 0 0 $self->slice($_, $c->slice($_)) >= 0 ? :
752 0 1 if $opt{'V'}