コード例 #1
0
 /// <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));
 }
コード例 #2
0
 /// <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));
 }