Simple number vector grouping
NumberGroups
01 Syntax
Microsoft.VisualBasic.Math.NumberGroups
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| diff | 1 | Lagged Differences Returns suitably lagged and iterated differences. |
| Min | 1 | 计算出target集合之众的与v距离最小的元素 (或者说是匹配度最高的元素) |
| BinarySearch | 1 | Returns -1 means no search result |
| GroupByTree | 2 | implements the group by function via AVLTree for large scale data |
| GroupBy | 3 | 将一维的数据按照一定的偏移量分组输出 |
| GroupBy | 3 | 将一维的数据按照一定的偏移量分组输出 |
| GroupByParallel | 1 | 将一维的数据按照一定的偏移量分组输出 |
| Groups | 1 | 按照相邻的两个数值是否在offset区间内来进行简单的分组操作 |
| Match | 1 | |
| Min | 1 | |
| GroupByParallel | 1 | |
| Groups | 1 |
03 Members
diff(
Double())Lagged Differences
Returns suitably lagged and iterated differences.
Remarks
x1 - x0
Parameters
| Name | Type | Description |
|---|---|---|
x | Double() | a numeric vector Or matrix containing the values To be differenced. |
Returns
for input vector element size is zero or else only one element inside, a empty diff vector will be generated from this function
Min``1(
IEnumerable(Of ``0), ``0)计算出target集合之众的与v距离最小的元素 (或者说是匹配度最高的元素)
Type Parameters
| Name | Description |
|---|---|
T |
Parameters
| Name | Type | Description |
|---|---|---|
target | IEnumerable(Of ``0) | - |
v | ``0 | - |
BinarySearch(
IEnumerable(Of Double), Double, IEquals)Returns -1 means no search result
Parameters
| Name | Type | Description |
|---|---|---|
seq | IEnumerable(Of Double) | - |
target | Double | - |
equals | IEquals | - |
Returns
gets the index value of the target number inside the input source seq where we find it.
GroupByTree(
IEnumerable(Of Double()), Double)implements the group by function via AVLTree for large scale data
Parameters
| Name | Type | Description |
|---|---|---|
source | IEnumerable(Of Double()) | - |
offset | Double | - |
GroupBy(
IEnumerable(Of Double), Double)将一维的数据按照一定的偏移量分组输出
Parameters
| Name | Type | Description |
|---|---|---|
source | IEnumerable(Of Double) | - |
offset | Double | - |
GroupBy(
IEnumerable(Of Double), IEquals)将一维的数据按照一定的偏移量分组输出
Parameters
| Name | Type | Description |
|---|---|---|
numbers | IEnumerable(Of Double) | - |
GroupBy``1(
IEnumerable(Of ``0), Func(Of ``0, Double), IEquals)Parameters
| Name | Type | Description |
|---|---|---|
source | IEnumerable(Of ``0) | - |
GroupBy``1(
IEnumerable(Of ``0), Func(Of ``0, Double), Double)将一维的数据按照一定的偏移量分组输出
Parameters
| Name | Type | Description |
|---|---|---|
source | IEnumerable(Of ``0) | - |
offsets | Func(Of ``0, Double) | - |
GroupBy``1(
IEnumerable(Of ``0), IEquals)将一维的数据按照一定的偏移量分组输出
Parameters
| Name | Type | Description |
|---|---|---|
numbers | IEnumerable(Of ``0) | - |
GroupByParallel``1(
IEnumerable(Of ``0), Func(Of ``0, Double), IEquals, Int32)将一维的数据按照一定的偏移量分组输出
Parameters
| Name | Type | Description |
|---|---|---|
source | IEnumerable(Of ``0) | - |
Groups``1(
IEnumerable(Of ``0), Int32)按照相邻的两个数值是否在offset区间内来进行简单的分组操作
Type Parameters
| Name | Description |
|---|---|
TagObject |
Parameters
| Name | Type | Description |
|---|---|---|
source | IEnumerable(Of ``0) | - |
offset | Int32 | - |
Match(
IEnumerable(Of T), IEnumerable(Of T))Min(
IEnumerable(Of T), T)GroupByTree(
IEnumerable(Of T()), Func(Of T, Double), Comparison(Of Double))GroupBy(
IEnumerable(Of T), Func(Of T, Double), GenericLambda(Of Double))GroupByParallel(
IEnumerable(Of T), Func(Of T, Double), GenericLambda(Of Double), Int32)Groups(
IEnumerable(Of TagObject), Int32)