Extensions
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| ValueTruncate | 1 | 对值进行约束剪裁 |
| Delta | 1 | Generate small delta for GA mutations |
| ToDataMatrix | 1 | Convert samples data to dataset matrix |
03 Members
Double, Double)对值进行约束剪裁
| Name | Type | Description |
|---|---|---|
value | Double | The target value that will be truncated. |
truncate | Double | the absolute value of the limitation.(修建的阈值应该是一个正实数来的) |
A value that is limited in the interval [-truncate, truncate]; the NaN, +Infinity and -Infinity values will also be replaced by a valid number.
Double, Double)Generate small delta for GA mutations
1 = 10 ^ 0 ~ 0.1 = 10 ^ 1 0.1 10 = 10 ^ 1 ~ 1 = 10 ^ 2 0.1
| Name | Type | Description |
|---|---|---|
x | Double | The reference value for calculates the magnitude of the delta. |
d | Double | The ratio factor of the generated delta relative to the magnitude of the x value, the default value is |
A small delta value which is proportional to the order of magnitude of the x value.
IEnumerable(Of Sample), String(), String())Convert samples data to dataset matrix
| Name | Description |
|---|---|
T | The type of the target output dataset. |
| Name | Type | Description |
|---|---|---|
samples | IEnumerable(Of Sample) | A collection of the Sample data. |
names | String() | The property names of the sample data vector. |
outputNames | String() | The property names of the output vector for each sample |
data layout of the populated matrix row:
ID|names|outputNames