![]() |
![]()
| ![]() |
![]()
NAMEAlgorithm::Evolutionary::Op::Bitflip - Bit-flip mutation SYNOPSISmy $op = new Algorithm::Evolutionary::Op::Bitflip 2; #Create from scratch with default rate Base ClassAlgorithm::Evolutionary::Op::Base DESCRIPTIONMutation operator for a GA; changes a single bit in the bitstring; does not need a rate METHODSnew( [$how_many] [,$priority] )Creates a new mutation operator with a bitflip application rate, which defaults to 0.5, and an operator application rate (general for all ops), which defaults to 1. create()Creates a new mutation operator. apply( $chromosome )Applies mutation operator to a "Chromosome", a bitstring, really. Can be applied only to victims composed of [0,1] atoms, independently of representation; but it checks before application that the operand is of type BitString. CopyrightThis file is released under the GPL. See the LICENSE file included in this distribution, or go to http://www.fsf.org/licenses/gpl.txt
|