src/GenFx/MetricExtensions.cs
/// <summary>
/// Calculates the metrics for the <paramref name="environment"/>.
/// </summary>
Calculates the metrics for the .
Calculates the metrics for the .
public static void Calculate(this Metric metric, GeneticEnvironment environment, int generationIndex)
        {
            foreach (Population population in environment.Populations)
            {
                ObservableCollection<MetricResult> populationStats = metric.GetResults(population.Index);
                MetricResult result = new MetricResult(generationIndex, population.Index, metric.GetResultValue(population), metric);
                populationStats.Add(result);
            }
        }
public static void Calculate ( this Metric metric , GeneticEnvironment environment , int generationIndex ) { foreach ( Population population in environment . Populations ) { ObservableCollection < MetricResult > populationStats = metric . GetResults ( population . Index ) ; MetricResult result = new MetricResult ( generationIndex , population . Index , metric . GetResultValue ( population ) , metric ) ; populationStats . Add ( result ) ; } }
Calculates the metrics for the .
Calculates the metrics for the .
Metric
this
environment
GeneticEnvironment
generationIndex
int