net.sourceforge.cilib.coevolution.score.fitnesscalculation
Class AveFitnessCalculationStrategy
java.lang.Object
net.sourceforge.cilib.coevolution.score.fitnesscalculation.FitnessCalculationStrategy
net.sourceforge.cilib.coevolution.score.fitnesscalculation.AveFitnessCalculationStrategy
- All Implemented Interfaces:
- Serializable, Cloneable
public class AveFitnessCalculationStrategy
- extends FitnessCalculationStrategy
This Fitness calulation strategy simply gets the average score attained regardless of win/lose or draw as the Fitness value.
- Author:
- leo
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AveFitnessCalculationStrategy
public AveFitnessCalculationStrategy()
AveFitnessCalculationStrategy
public AveFitnessCalculationStrategy(FitnessCalculationStrategy other)
calculateFitnessFromScoreBoard
public Fitness calculateFitnessFromScoreBoard(EntityScoreboard score,
int currentRound)
- Calculate the fitness from the scoreboard
- Specified by:
calculateFitnessFromScoreBoard
in class FitnessCalculationStrategy
- Parameters:
score
- the scoreboardcurrentRound
- current round of competition
- Returns:
- new fitness
getClone
public Object getClone()
- Create a cloned copy of the current object and return it. In general
the created copy will be a deep copy of the provided instance. As
a result this operation an be quite expensive if used incorrectly.
- Returns:
- An exact clone of the current object instance.
- See Also:
Object.clone()
Copyright © 2009 CIRG. All Rights Reserved.