Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Bag uniform distribution algorithms

by hdb (Prior)
on Apr 26, 2013 at 09:16 UTC ( #1030796=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1030796]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2016-10-24 19:51 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (309 votes). Check out past polls.