Interface FitnessNormalizer

All Known Implementing Classes:
DefaultFitnessNormalizer, ReverseFitnessNormalizer

public interface FitnessNormalizer
The normalizer will ensure that all evaluated fitness values are adjusted in order to be measured on a common scale. By default, we use 100 as the scale.
  • Method Summary

    Modifier and Type
    Method
    Description
    normalize(Double fitness, Double total)
    Normalize the fitness out of 100.
  • Method Details

    • normalize

      Double normalize(Double fitness, Double total)
      Normalize the fitness out of 100.
      Parameters:
      fitness - - the evaluated fitness value or Double.NaN if undefined
      total - - the sum of all evaluated fitness values for a given sourcing factor or Double.NaN if undefined; must be greater than 0
      Returns:
      the normalized fitness or zero if the fitness is Double.NaN