A Genetic Programming Framework for .NET

EngineOptions.Average Method 

Averages the specified raw fitness values.

public static decimal Average(
   HistoryCollection rawFitnessValues
);

Parameters

rawFitnessValues
IHistory instances containing the RawFitness values to aggregate.

Return Value

The average of the aggregated fitness values.

Remarks

This is the default method returned by the Aggregator property.

Exceptions

Exception Type Condition
ArgumentNullException Thrown when rawFitnessValues is null.
ArgumentException Thrown when rawFitnessValues is empty.

See Also

EngineOptions Class | GeneticProgrammingEngine.Internal Namespace | Aggregator Delegate | Aggregator Property | RawFitness Property | fitness Term