|
Algorithm::Evolutionary::Wheel - Random selector of things depending on probabilities |
Algorithm::Evolutionary::Wheel - Random selector of things depending on probabilities
my $wheel = new Algorithm::Evolutionary::Wheel( @probs );
print $wheel->spin(); #Returns an element according to probabilities;
Creates a ``roulette wheel'' for spinning and selecting stuff. It will be used in several places
Creates a new roulette wheel. Takes an array of numbers, which need not be normalized
Returns an individual according to fitness
|
Algorithm::Evolutionary::Wheel - Random selector of things depending on probabilities |