Operator.Operations
Class IntFlipFitness
java.lang.Object
Operator.Operations.MutationOperation
Operator.Operations.IntFlipFitness
- All Implemented Interfaces:
- Operation, ParameterI, Stochastic
public class IntFlipFitness
- extends MutationOperation
IntFlipMutation does integer mutation. This class also record the
average fitness change for the mutation at a chromosomal level
- 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 |
IntFlipFitness
public IntFlipFitness(double prob,
RandomNumberGenerator rng)
- Creates a new instance of IntFlipMutation
- Parameters:
prob - mutation probabilityrng - random number generator
IntFlipFitness
public IntFlipFitness(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