nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.Runtime / ScaleMaps

ScaleMaps

Full name Microsoft.VisualBasic.Math.ScaleMaps Assembly Microsoft.VisualBasic.Runtime Members 8

01 Syntax

Microsoft.VisualBasic.Math.ScaleMaps

02 Methods

NameOverloadsSummary
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

method TrimRanges #
TrimRanges(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.

Parameters
NameTypeDescription
DblDouble()

-

minDouble

-

maxDouble

-

method GenerateMapping #
GenerateMapping(IEnumerable(Of Double), Int32, Int32)

Linear mappings the vector elements in to another scale within specifc range from parameter Level. (如果每一个数值之间都是相同的大小,则返回原始数据,因为最大值与最小值的差为0,无法进行映射的创建(会出现除0的错误))

Remarks

为了要保持顺序,不能够使用并行拓展

Parameters
NameTypeDescription
dataIEnumerable(Of Double)

Your input numeric vector.

LevelInt32

The scaler range.

offsetInt32

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], 当然这个参数也可以使其他的值)

method GenerateMapping overload 2 #
GenerateMapping(IEnumerable(Of Int32), Int32, Int32)

如果每一个数值之间都是相同的大小,则返回原始数据,因为最大值与最小值的差为0,无法进行映射的创建(会出现除0的错误)

Remarks

为了要保持顺序,不能够使用并行拓展

Parameters
NameTypeDescription
dataIEnumerable(Of Int32)

-

method Log2Ranks #
Log2Ranks(IEnumerable(Of Double), Int32)

apply of the log transform of the data and then run linear scale

Parameters
NameTypeDescription
dataIEnumerable(Of Double)

-

LevelInt32

-

method Scale #
Scale(IEnumerable(Of Double), Boolean, Boolean)

Function centers and/or scales the columns of a numeric matrix.

Parameters
NameTypeDescription
dataIEnumerable(Of Double)

numeric matrix

centerBoolean

either a logical value or a numeric vector of length equal to the number of columns of x

isScaleBoolean

either a logical value or a numeric vector of length equal to the number of columns of x

method LogLevels #
LogLevels(IEnumerable(Of Double), Int32, Int32)
method GenerateMapping overload 3 #
GenerateMapping(IEnumerable(Of Int64), Int32)
method MapHelper #
MapHelper(IEnumerable(Of T))