Algorithm::Evolutionary::Wheel - Random selector of things depending on probabilities


NAME

    Algorithm::Evolutionary::Wheel - Random selector of things depending on probabilities


SYNOPSIS

    my $wheel = new Algorithm::Evolutionary::Wheel( @probs );
    print $wheel->spin(); #Returns an element according to probabilities;


DESCRIPTION

Creates a ``roulette wheel'' for spinning and selecting stuff. It will be used in several places


METHODS

new

Creates a new roulette wheel. Takes an array of numbers, which need not be normalized

spin

Returns an individual according to fitness

 Algorithm::Evolutionary::Wheel - Random selector of things depending on probabilities