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


Manual Reference Pages  -  ALGORITHM::EVOLUTIONARY::OP::CHANGELENGTHMUTATION (3)

.ds Aq ’

NAME

Algorithm::Evolutionary::Op::ChangeLengthMutation - Increases/decreases by one atom the length of the string

CONTENTS

SYNOPSIS



  my $xmlStr2=<<EOC;
  <op name=ChangeLengthMutation type=unary rate=0.5 />
  EOC
  my $ref2 = XMLin($xmlStr2);

  my $op2 = Algorithm::Evolutionary::Op::Base->fromXML( $ref2 );
  print $op2->asXML(), "\n*Arity ", $op->arity(), "\n";

  my $op = new Algorithm::Evolutionary::Op::ChangeLengthMutation 1, 0.5, 0.5; #Create from scratch



Base Class

Algorithm::Evolutionary::Op::Base

DESCRIPTION

Increases or decreases the length of a string, by adding a random element, or eliminating it.

METHODS

new( CW$rate[, CW$increment_probability] [, CW$decrement_probability]

Creates a new operator. It is called with 3 arguments: the rate it’s going to be applied, and the probability of adding and substracting an element from the string each time it’s applied.

    create

Creates a new operator. It is called with 3 arguments: the rate it’s going to be applied, and the probability of adding and substracting an element from the string each time it’s applied. Rates default to one.

    apply

This is the function that does the stuff. The probability of adding and substracting are normalized. Depending on a random draw, a random char is added to the string (at the end) or eliminated from a random position within the string..

Copyright



  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: 2009/09/13 12:49:04 $
  $Header: /media/Backup/Repos/opeal/opeal/Algorithm-Evolutionary/lib/Algorithm/Evolutionary/Op/ChangeLengthMutation.pm,v 3.1 2009/09/13 12:49:04 jmerelo Exp $
  $Author: jmerelo $
  $Revision: 3.1 $
  $Name $



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


perl v5.20.3 ALGORITHM::EVOLUTIONARY::OP::CHANGELENGTHMUTATION (3) 2014-10-25

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