GEP::Core::Float::MatingProbabilityFunctions::DirectFitnessToProbability Class Reference

Directly maps fitness to mating probability. More...

Inheritance diagram for GEP::Core::Float::MatingProbabilityFunctions::DirectFitnessToProbability:

Inheritance graph
Collaboration diagram for GEP::Core::Float::MatingProbabilityFunctions::DirectFitnessToProbability:

Collaboration graph

List of all members.

Public Member Functions

 DirectFitnessToProbability (bool fitnessCloserToZeroIsBetter)
override void SetMatingProbability (Common.Population population)
abstract void SetMatingProbability (Population population)
 Evaluates and assigns Genotype.MatingProbabilitys to all genotypes in population .

Protected Attributes

Random _random = new Random()

Detailed Description

Directly maps fitness to mating probability.

If Common.MatingProbabilityFunctions.MatingProbabilityFunction._fitnessCloserToZeroIsBetter is false, the mating probability of a Genotype is equal to its fitness.

If Common.MatingProbabilityFunctions.MatingProbabilityFunction._fitnessCloserToZeroIsBetter is true, the minimum interval that holds all fitnesses is inverterd and the inverted fitnesses in it are the corresponding mating probabilities

This mapping is very clumsy when extreme cases of fitness occur, deviating from the average.

Definition at line 20 of file DirectFitnessToProbability.cs.

The documentation for this class was generated from the following file:
GEP .NET Framwork Main Page Logo