Navigation: Code Documentation > GeneticAlgorithm > RSGeneticBase > Classes > TRSCustomGeneticComponent > Methods
TRSCustomGeneticComponent.GetNormalizedFitness(TGAFitness) Method
Calculates the normalized fitness, a value between 0 and 1.
The normalized fitness equals Fitness / Sum of All Fitness
Namespace: RSGeneticBase
Delphi
protected function GetNormalizedFitness( const Fitness: TGAFitness ): TGAFitness;
Parameters
Fitness
Type: TGAFitness
•RSGeneticBase.TRSCustomGeneticComponent.FitnessMethod
•RSGeneticBase.TRSCustomGeneticComponent.GetNormalizedWeightedFitness(TGAFitness)
•TRSCustomGeneticComponent
•RSGeneticBase