Operator.Operations
Class IntFlipByteMutation
java.lang.Object
Operator.Operations.MutationOperation
Operator.Operations.IntFlipByteMutation
- All Implemented Interfaces:
- Operation, ParameterI, Stochastic
public class IntFlipByteMutation
- extends MutationOperation
IntFlipMutation does integer mutation. This method
changes the integer into a byte before mutation so as to show the
effects of locality on the mutation operation
- Author:
- Conor
Method Summary |
void |
doOperation(Individual operand)
Calls doMutation(GEIndividual c) and then calls Individual.invalidate() |
void |
doOperation(java.util.List<Individual> operands)
Performs the operation on the list passed |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntFlipByteMutation
public IntFlipByteMutation(double prob,
RandomNumberGenerator rng)
- Creates a new instance of IntFlipMutation
- Parameters:
prob
- mutation probabilityrng
- random number generator
IntFlipByteMutation
public IntFlipByteMutation(RandomNumberGenerator rng,
java.util.Properties p)
- New instance
- Parameters:
rng
- random number generatorp
- properties
doOperation
public void doOperation(java.util.List<Individual> operands)
- Description copied from interface:
Operation
- Performs the operation on the list passed
- Specified by:
doOperation
in interface Operation
- Specified by:
doOperation
in class MutationOperation
- Parameters:
operands
- operands to be operated on
doOperation
public void doOperation(Individual operand)
- Calls doMutation(GEIndividual c) and then calls Individual.invalidate()
- Specified by:
doOperation
in interface Operation
- Specified by:
doOperation
in class MutationOperation
- Parameters:
operand
- operand to operate on