- or download this
use strict;
use warnings;
...
return $metric/@series;
}
- or download this
sub mix {
my $bag = shift;
my @str = sort { $bag->{$a} <=> $bag->{$b} } keys %$bag;
...
return \@distribution;
}
- or download this
sub evaluate {
my $cand = shift;
...
};
evaluate( $candidates, $bags );
- or download this
Monk Better:higher Better:lower Result
------------------------------------------------------------
...
hdb 222.75 0.44 ACBACBACBACBACBAC
+BACBACBACBACB
kcott 224.75 0.44 ABCABCABCABCABCCB
+ACBACBACBACBA
kennethk 222.75 0.44 CBACBACBACBACBACB
+ACBACBACBACBA