org.encog.neural.networks.training.genetic
Class GeneticScoreAdapter
java.lang.Object
org.encog.neural.networks.training.genetic.GeneticScoreAdapter
- All Implemented Interfaces:
- CalculateGenomeScore
public class GeneticScoreAdapter
- extends Object
- implements CalculateGenomeScore
This adapter allows a CalculateScore object to be used to calculate a
Genome's score, where a CalculateGenomeScore object would be called for.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeneticScoreAdapter
public GeneticScoreAdapter(CalculateScore calculateScore)
- Construct the adapter.
- Parameters:
calculateScore - The CalculateScore object to use.
calculateScore
public final double calculateScore(Genome genome)
- Calculate the genome's score.
- Specified by:
calculateScore in interface CalculateGenomeScore
- Parameters:
genome - The genome to calculate for.
- Returns:
- The calculated score.
shouldMinimize
public final boolean shouldMinimize()
- Specified by:
shouldMinimize in interface CalculateGenomeScore
- Returns:
- True, if the score should be minimized.
Copyright © 2012. All Rights Reserved.