None available.
sub minmax
{ my $self = shift;
my $parts = shift;
my $max_score = $self->option('max_score');
my $min_score = $self->option('min_score');
my $do_min = !defined $min_score;
my $do_max = !defined $max_score;
if ($do_min or $do_max) {
my $first = $parts->[0];
for my $part (@$parts) {
my $s = eval { $part->feature->score };
next unless defined $s;
$max_score = $s if $do_max && (!defined $max_score or $s > $max_score);
$min_score = $s if $do_min && (!defined $min_score or $s < $min_score);
}
}
($min_score,$max_score); } |
Please report them.