MathExtensions.Mode<T> method
Extension method used to calculate the mode of a list of numbers.
public static IList<ValueTuple<T, int>> Mode<T>(this IEnumerable<T> items)
parameter | description |
---|---|
T | Type parameters of the list being analayzed |
items | IEnumerable of items to determine the statistical mode of. |
Return Value
An IList of Tuples where Value is the item that has the most items, and Count is the count of that item.
See Also
- class MathExtensions
- namespace TheCodingMonkey.Math