GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Algorithm::Evolutionary::Op::IncMutation(3) User Contributed Perl Documentation Algorithm::Evolutionary::Op::IncMutation(3)

Algorithm::Evolutionary::Op::IncMutation - Increments/decrements by one the value of one of the components of the string, takes into account the char class

  my $op = new Algorithm::Evolutionary::Op::IncMutation; #Create from scratch

Algorithm::Evolutionary::Op::Base

  Mutation operator for a GA; changes a single element in a string by
  changing it to the next in the sequence deducted from the chromosome
  itself.

Creates a new mutation operator.

Applies mutation operator to a "Chromosome", a string, really. Can be applied only to victims with the "_str" instance variable; but it checks before application that both operands are of the required type. The chosen character is changed to the next or previous in the array of chars used for coding the the string my $strChrom = new Algorithm::Evolutionary::Individual::String ['a','c','g','t'] 10; my $xmen = new Algorithm::Evolutionary::Op::IncMutation; $xmen->apply( $strChrom ) # will change 'acgt' into 'aagt' or # 'aggt', for instance

Issues an error if there is no "_chars" array, which is needed for computing the next.

  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
2017-10-28 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.