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
This file is released under the GPL. See the LICENSE file included in this distribution, or go to http://www.fsf.org/licenses/gpl.txt CVS Info: $Date: 2002/07/26 10:50:59 $ $Header: /cvsroot/opeal/opeal/Algorithm/Evolutionary/Wheel.pm,v 1.2 2002/07/26 10:50:59 jmerelo Exp $ $Author: jmerelo $
To install Algorithm::Evolutionary, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Algorithm::Evolutionary
CPAN shell
perl -MCPAN -e shell install Algorithm::Evolutionary
For more information on module installation, please visit the detailed CPAN module installation guide.