jhpro.sregression
Class FormulaFitnessFunction
- java.lang.Object
-
- org.jgap.gp.GPFitnessFunction
-
- jhpro.sregression.FormulaFitnessFunction
-
- All Implemented Interfaces:
- java.io.Serializable
public class FormulaFitnessFunction extends GPFitnessFunction
Fitness function for evaluating the produced fomulas, represented as GP programs. The fitness is computed by calculating the result (Y) of the function/formula for integer inputs (X's). The sum of the differences between expected Y and actual Y is the fitness, the lower the better (as it is a defect rate here).- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.jgap.gp.GPFitnessFunction
MAX_FITNESS_VALUE, NO_FITNESS_VALUE
-
-
Constructor Summary
Constructors Constructor and Description FormulaFitnessFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublecomputeRawFitness(IGPProgram ind)-
Methods inherited from class org.jgap.gp.GPFitnessFunction
getFitnessValue, getLastComputedFitnessValue, GPFitnessFunction
-
-
-
-
Method Detail
-
computeRawFitness
public double computeRawFitness(IGPProgram ind)
-
-
DMelt 3.0 © DataMelt by jWork.ORG