GEP::Core::Float::MatingProbabilityFunctions::SogartarEllipticMappingFitnessToProbability Class Reference

The mapping function is composed of quarters of two ellipses. More...

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

Inheritance graph
[legend]
Collaboration diagram for GEP::Core::Float::MatingProbabilityFunctions::SogartarEllipticMappingFitnessToProbability:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 SogartarEllipticMappingFitnessToProbability (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

The mapping function is composed of quarters of two ellipses.

Sketch of the mapping:

        mating
        probability
         ^                                               
         |                                              1/4 of ellipse 2
        1.                                             |                  ..
         |                                                        .
         |                                             |      .
         |                                                  .
         |                                             |  .                |
         |                                               .
         |                                              .                  |
         |                                             .
        1|                                             .                   |
        -.      -      -      -      -       -         :  -   -  -  -  -  -
        2|                                             .
         |                                             .                   |
         |                                            .
         |                                          . 
         |             1/4 of ellipse 1          .     |                   |
         |                                   .
         |                              .
         |                      .                      |                   |
        0|           .
         :---------------------------------------------.-------------------.---------------->
         |worst fitness                     median average fitness        best fitness     fitness

The advantage of this mapping is that extreme cases do not affect that much fitnesses near the median average, which produces results intuitively better to humans.

Definition at line 45 of file SogartarEllipticMappingFitnessToProbability.cs.


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