Table of Contents

Class EvolutionStats<T, TInput, TOutput>

Namespace
AiDotNet.Statistics
Assembly
AiDotNet.dll

Represents statistics about the evolutionary process.

public class EvolutionStats<T, TInput, TOutput>

Type Parameters

T
TInput
TOutput
Inheritance
EvolutionStats<T, TInput, TOutput>
Inherited Members

Constructors

EvolutionStats(IFitnessCalculator<T, TInput, TOutput>)

public EvolutionStats(IFitnessCalculator<T, TInput, TOutput> fitnessCalculator)

Parameters

fitnessCalculator IFitnessCalculator<T, TInput, TOutput>

Properties

AverageFitness

Gets or sets the average fitness of the current population.

public T AverageFitness { get; set; }

Property Value

T

BestFitness

Gets or sets the best fitness found so far.

public T BestFitness { get; set; }

Property Value

T

BestIndividual

Gets or sets a reference to the best individual found so far.

public object BestIndividual { get; set; }

Property Value

object

Diversity

Gets or sets a measure of the population's genetic diversity.

public T Diversity { get; set; }

Property Value

T

FitnessHistory

Gets or sets the fitness history across generations.

public List<T> FitnessHistory { get; set; }

Property Value

List<T>

FitnessStandardDeviation

Gets or sets the standard deviation of fitness in the population.

public T FitnessStandardDeviation { get; set; }

Property Value

T

Generation

Gets or sets the current generation number.

public int Generation { get; set; }

Property Value

int

GenerationsSinceImprovement

Gets or sets the number of generations since the last improvement.

public int GenerationsSinceImprovement { get; set; }

Property Value

int

ImprovedInLastGeneration

Gets or sets whether a fitness improvement occurred in the last generation.

public bool ImprovedInLastGeneration { get; set; }

Property Value

bool

TimeElapsed

Gets or sets the time elapsed since the evolution started.

public TimeSpan TimeElapsed { get; set; }

Property Value

TimeSpan

WorstFitness

Gets or sets the worst fitness in the current population.

public T WorstFitness { get; set; }

Property Value

T