Grouping.By Value Method
Definition
Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
ByValue<T>(IList<T>) | Constructs a grouping based on the values in the specified list. |
ByValue<T>(IList<T>, IntervalIndex<T>) | Constructs a grouping based on binned values. |
ByValue<T>(IList<T>, IEqualityComparer<T>) | Constructs a grouping based on the values in the specified list. |
ByValue<T>(IList<T>, T, T, Int32) | Constructs a grouping based on binned values. |
ByValue<T>(IList<T>)
Constructs a grouping based on the values in the specified list.
public static Grouping<T> ByValue<T>(
IList<T> values
)
Parameters
- values IList<T>
- A list that contains the values to group on.
Type Parameters
- T
- The element type of the list.
Return Value
Grouping<T>ByValue<T>(IList<T>, IntervalIndex<T>)
Constructs a grouping based on binned values.
public static Grouping<Interval<T>> ByValue<T>(
IList<T> values,
IntervalIndex<T> index
)
where T : Object, IComparable<T>
Parameters
- values IList<T>
- A list of values.
- index IntervalIndex<T>
- The index used to partition the values.
Type Parameters
- T
- The type of the values.
Return Value
Grouping<Interval<T>>A grouping object that represents the grouping of values into bins specified by index.
ByValue<T>(IList<T>, IEqualityComparer<T>)
Constructs a grouping based on the values in the specified list.
public static Grouping<T> ByValue<T>(
IList<T> values,
IEqualityComparer<T> comparer
)
Parameters
- values IList<T>
- A list that contains the values to group on.
- comparer IEqualityComparer<T>
- A comparer that determines when two values are equal.
Type Parameters
- T
- The element type of the list.
Return Value
Grouping<T>Exceptions
Argument | values is null. |
ByValue<T>(IList<T>, T, T, Int32)
Constructs a grouping based on binned values.
public static Grouping<Interval<T>> ByValue<T>(
IList<T> values,
T lowerBound,
T upperBound,
int numberOfBins
)
where T : Object, IComparable<T>
Parameters
- values IList<T>
- A list of values.
- lowerBound T
- The lower bound of the range.
- upperBound T
- The upper bound of the range.
- numberOfBins Int32
- The number of intervals.
Type Parameters
- T
- The type of the values.
Return Value
Grouping<Interval<T>>A grouping object that represents the grouping of values into numberOfBins bins between lowerBound and upperBound.