Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## cz.pcland.ga.fitness
Class BaseFunctionFitness

    java.lang.Object
      cz.pcland.ga.fitness.BaseFunctionFitness

Direct Known Subclasses:
  FunctionFitnessGray, FunctionFitnessNaive

    public abstract class BaseFunctionFitness

extends java.lang.Object

Constructor Summary
`BaseFunctionFitness()` Creates a new instance of BaseFunctionFitness

Method Summary
`double` | `convertValueToInterval(double decodedValue)` Converts some decinal value to the given interval stored in current instance of function.
`abstract double` | `decode(BaseIndividual str)` Decodes value represented by Individual to some decimal number.
`abstract double` | `getFunctionValue(double xValue)` Returns function value in xValue point.
`void` | `setDataObject(java.lang.Object instance)` Stores current instance to be solved.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### BaseFunctionFitness

    public BaseFunctionFitness()

  Creates a new instance of BaseFunctionFitness

Method Detail

### decode

    public abstract double decode(BaseIndividual str)

  Decodes value represented by Individual to some decimal number. For example: binary to decimal or hamming to decimal order.

### convertValueToInterval

    public double convertValueToInterval(double decodedValue)

  Converts some decinal value to the given interval stored in current instance of function.

### getFunctionValue

    public abstract double getFunctionValue(double xValue)

  Returns function value in xValue point.

### setDataObject

    public void setDataObject(java.lang.Object instance)

  Stores current instance to be solved.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD