Package de.sfuhrm.genetic.intguessing
Class IntGuessingHypothesis
- java.lang.Object
-
- de.sfuhrm.genetic.AbstractHypothesis<IntGuessingHypothesis>
-
- de.sfuhrm.genetic.intguessing.IntGuessingHypothesis
-
public final class IntGuessingHypothesis extends AbstractHypothesis<IntGuessingHypothesis>
Hypothesis for a fixed-size int array content.- Author:
- Stephan Fuhrmann
-
-
Constructor Summary
Constructors Constructor Description IntGuessingHypothesis(int totalNumbers)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected doublecalculateFitness()protected List<IntGuessingHypothesis>crossOver(IntGuessingHypothesis other)protected doublemaximumFitness()protected voidmutate()protected IntGuessingHypothesisrandomInit()StringtoString()-
Methods inherited from class de.sfuhrm.genetic.AbstractHypothesis
getRANDOM
-
-
-
-
Method Detail
-
randomInit
protected IntGuessingHypothesis randomInit()
- Specified by:
randomInitin classAbstractHypothesis<IntGuessingHypothesis>
-
crossOver
protected List<IntGuessingHypothesis> crossOver(IntGuessingHypothesis other)
- Specified by:
crossOverin classAbstractHypothesis<IntGuessingHypothesis>
-
maximumFitness
protected double maximumFitness()
-
calculateFitness
protected double calculateFitness()
- Specified by:
calculateFitnessin classAbstractHypothesis<IntGuessingHypothesis>
-
mutate
protected void mutate()
- Specified by:
mutatein classAbstractHypothesis<IntGuessingHypothesis>
-
-