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