src/GenFx.Wpf/Controls/MetricsChart.xaml.cs
/// <summary>
/// Handles the event when the algorithm has evaluated the fitness of a population.
/// </summary>
/// <param name="sender">Sender of the event.</param>
/// <param name="e">The<see cref="EnvironmentFitnessEvaluatedEventArgs"/> associated with the event.</param>
Handles the event when the algorithm has evaluated the fitness of a population.
Handles the event when the algorithm has evaluated the fitness of a population .
private void Algorithm_FitnessEvaluated(object? sender, EnvironmentFitnessEvaluatedEventArgs e)
        {
            if (e.GenerationIndex == 0)
            {
                this.RefreshAllSeries();
            }
            else
            {
                this.RefreshPlot();
            }
        }
private void Algorithm_FitnessEvaluated ( object ? sender , EnvironmentFitnessEvaluatedEventArgs e ) { if ( e . GenerationIndex == 0 ) { this . RefreshAllSeries ( ) ; } else { this . RefreshPlot ( ) ; } }
Handles the event when the algorithm has evaluated the fitness of a population.
Handles the event when the algorithm has evaluated the fitness of a population .
sender
object?
Sender of the event.
Sender of the event .
e
EnvironmentFitnessEvaluatedEventArgs
The associated with the event.
The associated with the event .