Vector.Split By Method
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Split | Splits a vector according to the specified grouping. |
Split | Splits a vector according to the specified grouping. |
SplitBy<T>(Vector<T>, IGrouping)
Splits a vector according to the specified grouping.
public static Vector<Vector<T>> SplitBy<T>(
this Vector<T> values,
IGrouping grouping
)
Parameters
- values Vector<T>
- The vector to split.
- grouping IGrouping
- A categorical vector that specifies the grouping.
Type Parameters
- T
Return Value
Vector<Vector<T>>A vector of vector.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Vector<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).SplitBy<T>(Vector<T>, ICategoricalVector)
Splits a vector according to the specified grouping.
public static Vector<Vector<T>> SplitBy<T>(
this Vector<T> values,
ICategoricalVector grouping
)
Parameters
- values Vector<T>
- The vector to split.
- grouping ICategoricalVector
- A categorical vector that specifies the grouping.
Type Parameters
- T
Return Value
Vector<Vector<T>>A vector of vector.