ScaleMaps
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| TrimRanges | 1 | Trims the data ranges, if n in Dbl vector is less than min, then set n = min; else if n is greater than max, then set n value to max, else do nothing. |
| GenerateMapping | 3 | Linear mappings the vector elements in to another scale within specifc range from parameter Level. |
| Log2Ranks | 1 | apply of the log transform of the data and then run linear scale |
| Scale | 1 | Function centers and/or scales the columns of a numeric matrix. |
| LogLevels | 1 | |
| MapHelper | 1 |
03 Members
Double(), Double, Double)Trims the data ranges, if n in Dbl vector is less than min, then set n = min; else if n is greater than max, then set n value to max, else do nothing.
| Name | Type | Description |
|---|---|---|
Dbl | Double() | - |
min | Double | - |
max | Double | - |
IEnumerable(Of Double), Int32, Int32)Linear mappings the vector elements in to another scale within specifc range from parameter Level. (如果每一个数值之间都是相同的大小,则返回原始数据,因为最大值与最小值的差为0,无法进行映射的创建(会出现除0的错误))
为了要保持顺序,不能够使用并行拓展
| Name | Type | Description |
|---|---|---|
data | IEnumerable(Of Double) | Your input numeric vector. |
Level | Int32 | The scaler range. |
offset | Int32 | The default scaler range output is [1, Level], but you can modify this parameter value for moving the range to [offset, Level + offset]. (默认是 [1, Level], 当offset的值为0的时候,则为[0, Level-1], 当然这个参数也可以使其他的值) |
IEnumerable(Of Int32), Int32, Int32)如果每一个数值之间都是相同的大小,则返回原始数据,因为最大值与最小值的差为0,无法进行映射的创建(会出现除0的错误)
为了要保持顺序,不能够使用并行拓展
| Name | Type | Description |
|---|---|---|
data | IEnumerable(Of Int32) | - |
IEnumerable(Of Double), Int32)apply of the log transform of the data and then run linear scale
| Name | Type | Description |
|---|---|---|
data | IEnumerable(Of Double) | - |
Level | Int32 | - |
IEnumerable(Of Double), Boolean, Boolean)Function centers and/or scales the columns of a numeric matrix.
| Name | Type | Description |
|---|---|---|
data | IEnumerable(Of Double) | numeric matrix |
center | Boolean | either a logical value or a numeric vector of length equal to the number of columns of x |
isScale | Boolean | either a logical value or a numeric vector of length equal to the number of columns of x |
IEnumerable(Of Double), Int32, Int32)IEnumerable(Of Int64), Int32)IEnumerable(Of T))