src/GenFx/Metric.cs
/// <summary>
/// Initializes the component to ensure its readiness for algorithm execution.
/// </summary>
/// <param name="algorithm">The algorithm that is to use this component.</param>
Initializes the component to ensure its readiness for algorithm execution.
Initializes the component to ensure its readiness for algorithm execution .
public override void Initialize(GeneticAlgorithm algorithm)
        {
            base.Initialize(algorithm);
            populationResults.Clear();
            for (int i = 0; i < this.Algorithm!.MinimumEnvironmentSize; i++)
            {
                this.populationResults.Add(i, new ObservableCollection<MetricResult>());
            }
        }
public override void Initialize ( GeneticAlgorithm algorithm ) { base . Initialize ( algorithm ) ; populationResults . Clear ( ) ; for ( int i = 0 ; i < this . Algorithm ! . MinimumEnvironmentSize ; i ++ ) { this . populationResults . Add ( i , new ObservableCollection < MetricResult > ( ) ) ; } }
Initializes the component to ensure its readiness for algorithm execution.
Initializes the component to ensure its readiness for algorithm execution .
algorithm
GeneticAlgorithm
The algorithm that is to use this component.
The algorithm that is to use this component .