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
Class BaseIndividual

    java.lang.Object
      cz.pcland.ga.BaseIndividual

Direct Known Subclasses:
  BinaryIndividual, TSPIntegerIndividual

    public abstract class BaseIndividual

extends java.lang.Object

Field Summary
`protected double` | `evaluation` Express evaluation of individual and is computed by Fitness function.
`protected double` | `fitness` Fitness is used as a value, which express individual's chances to appear in the next generation.
`protected double` | `fitnessRank` Rank based on individual's fitness.
`protected int` | `strLen` Length of individual

Constructor Summary
`BaseIndividual()` Constructor
`BaseIndividual(int stringLen)` Constructor, sets lenght of individual

Method Summary
`abstract BaseIndividual` | `copy()` Returns exact copy of individual
`double` | `getEvaluation()` Returns evaluation of individual
`double` | `getFitness()` Returns fitness of individual
`double` | `getFitnessRank()` Returns fitnessRank of individual
`void` | `setEvaluation(double r)` Sets evaluation of individual
`void` | `setFitness(double f)` Sets fitness of individual
`void` | `setFitnessRank(double f)` Sets fitnessRank of individual

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

Field Detail

### strLen

    protected int strLen

  Length of individual

### fitness

    protected double fitness

  Fitness is used as a value, which express individual's chances to appear in the next generation.

### fitnessRank

    protected double fitnessRank

  Rank based on individual's fitness. It is commonly used by Rank Roulette selection.

### evaluation

    protected double evaluation

  Express evaluation of individual and is computed by Fitness function.

Constructor Detail

### BaseIndividual

    public BaseIndividual()

  Constructor

### BaseIndividual

    public BaseIndividual(int stringLen)

  Constructor, sets lenght of individual

  Parameters:
    `stringLen` - Length of individual

Method Detail

### copy

    public abstract BaseIndividual copy()

  Returns exact copy of individual

### getFitness

    public double getFitness()

  Returns fitness of individual

### setFitness

    public void setFitness(double f)

  Sets fitness of individual

  Parameters:
    `f` - value

### getEvaluation

    public double getEvaluation()

  Returns evaluation of individual

### setEvaluation

    public void setEvaluation(double r)

  Sets evaluation of individual

  Parameters:
    `r` - Evaluation value

### getFitnessRank

    public double getFitnessRank()

  Returns fitnessRank of individual

### setFitnessRank

    public void setFitnessRank(double f)

  Sets fitnessRank of individual

  Parameters:
    `f` - Rank value

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

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