Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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 making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2014-09-18 02:18 GMT
Find Nodes?
    Voting Booth?

    How do you remember the number of days in each month?

    Results (104 votes), past polls