org.apache.commons.math.genetics
Interface Fitness

All Known Implementing Classes:
AbstractListChromosome, BinaryChromosome, Chromosome, RandomKey

public interface Fitness

Fitness of a chromosome.

Since:
2.0
Version:
$Revision: 800116 $ $Date: 2009-08-02 13:49:59 -0400 (Sun, 02 Aug 2009) $

Method Summary
 double fitness()
          Compute the fitness.
 

Method Detail

fitness

double fitness()
Compute the fitness. This is usually very time-consuming, so the value should be cached.

Returns:
fitness


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.