Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2017-04-25 13:55 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (454 votes). Check out past polls.