/// <summary> /// Calculates the modes of the specified collection of numbers using the specified discretization unit epsilon. /// </summary> /// <param name="numbers">The collection whose modes are to be calculated.</param> /// <param name="discretizationEpsilon">Discretization unit epsilon.</param> /// <returns>The modes of the specified collection.</returns> public static double[] Modes(this IEnumerable <double> numbers, double discretizationEpsilon) { return(ModesCalculator.Modes(numbers, discretizationEpsilon)); }
/// <summary> /// Calculates the modes of the specified integer values. /// </summary> /// <param name="numbers">The collection whose modes are to be calculated.</param> /// <returns>The modes of the specified collection.</returns> public static int[] Modes(this IEnumerable <int> numbers) { return(ModesCalculator.Modes(numbers)); }