进行数据分箱操作
CutBins
01 Syntax
Microsoft.VisualBasic.Math.Distributions.BinBox.CutBins
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| FixedWidthBins | 2 | 数据等宽分箱 将变量的取值范围分为k个等宽的区间,每个区间当作一个分箱。 |
| FixedWidthBins | 3 | 数据等宽分箱 将变量按照给定的值域宽度分为多个区间 |
| EqualFrequencyBins | 1 | 等频分箱,每一个bin之中的元素数目相等 |
03 Members
FixedWidthBins(
IEnumerable(Of Double), Int32)数据等宽分箱
将变量的取值范围分为k个等宽的区间,每个区间当作一个分箱。
Remarks
宽度是自动计算的
Parameters
| Name | Type | Description |
|---|---|---|
data | IEnumerable(Of Double) | - |
FixedWidthBins(
IEnumerable(Of Single), Int32)数据等宽分箱
将变量的取值范围分为k个等宽的区间,每个区间当作一个分箱。
Remarks
宽度是自动计算的
Parameters
| Name | Type | Description |
|---|---|---|
data | IEnumerable(Of Single) | - |
FixedWidthBins``1(
IEnumerable(Of ``0), Int32, Evaluate(Of ``0), Double, DoubleRange, Boolean)数据等宽分箱
将变量的取值范围分为k个等宽的区间,每个区间当作一个分箱。
Remarks
宽度是自动计算的
Parameters
| Name | Type | Description |
|---|---|---|
data | IEnumerable(Of ``0) | - |
allow_empty | Int32 | this function will just returns an empty collection of the data bin box if the given data collection is empty and also this parameter is set to TRUE. |
FixedWidthBins``1(
IEnumerable(Of ``0), Double, DoubleRange, Evaluate(Of ``0))数据等宽分箱
将变量按照给定的值域宽度分为多个区间
Remarks
宽度是手工指定的
Type Parameters
| Name | Description |
|---|---|
T |
Parameters
| Name | Type | Description |
|---|---|---|
v | IEnumerable(Of ``0) | - |
width | Double | 所给定的区间宽度 |
eval | DoubleRange | - |
FixedWidthBins``1(
``0(), Double, Evaluate(Of ``0), Double, Double, Double)数据等宽分箱
将变量按照给定的值域宽度分为多个区间
Type Parameters
| Name | Description |
|---|---|
T |
Parameters
| Name | Type | Description |
|---|---|---|
v | ``0() | - |
width | Double | 所给定的区间宽度 |
eval | Evaluate(Of ``0) | - |
EqualFrequencyBins``1(
IEnumerable(Of ``0), Int32, Evaluate(Of ``0))等频分箱,每一个bin之中的元素数目相等
Parameters
| Name | Type | Description |
|---|---|---|
data | IEnumerable(Of ``0) | - |
k | Int32 | 得到K个bin |