Evolution/Evolution/Core/StopCriteriaDelegate.cs
/// <summary>
/// Returns a <see cref="StopCriteriaDelegate{G,F}"/> which returns true when the best fitness reached is greater or equal than fitness
/// </summary>
/// <typeparam name="G"></typeparam>
/// <typeparam name="F"></typeparam>
/// <param name="fitness">The fitness.</param>
/// <returns></returns>
Returns a  which returns true when the best fitness reached is greater or equal than fitness
Returns a which returns true when the best fitness reached is greater or equal than fitness
public static StopCriteriaDelegate<G, F> StopAtFitness<G, F>(F fitness) where G : IGenotype
            where F : IComparable<F>
        {
            return world => world.BestFitness.CompareTo(fitness) != -1;
        }
public static StopCriteriaDelegate < G , F > StopAtFitness < G , F > ( F fitness ) where G : IGenotype where F : IComparable < F > { return world => world . BestFitness . CompareTo ( fitness ) != - 1 ; }
Returns a  which returns true when the best fitness reached is greater or equal than fitness
Returns a which returns true when the best fitness reached is greater or equal than fitness
None
fitness
F
None
typeparam
None
typeparam
None