nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.Math.Core / Extensions

Extensions

Full name Microsoft.VisualBasic.Math.LinearAlgebra.Extensions Assembly Microsoft.VisualBasic.Math.Core Members 6

01 Syntax

Microsoft.VisualBasic.Math.LinearAlgebra.Extensions

02 Methods

NameOverloadsSummary
Points 1 Populate points from two Vector.
Point2D 1 iterates a set of point from the given vector tuple
Top 1 Check of the elements of the vector inside the top n elements?
Take 1 Simplified (numPy) take method: 1) axis is always 0, 2) first argument is always a vector
rand 2 获取一个指定长度的由目标区间范围内的随机数所构成的向量

03 Members

method Points #
Points(Vector, Vector)

Populate points from two Vector.

Parameters
NameTypeDescription
xVector

-

yVector

-

method Point2D #
Point2D(ValueTuple(Of Vector, Vector))

iterates a set of point from the given vector tuple

Parameters
NameTypeDescription
polygonValueTuple(Of Vector, Vector)

two vector should be in size equals

Returns

a set of the point data in float data type

method Top #
Top(Vector, Int32)

Check of the elements of the vector inside the top n elements?

Remarks

this function will create the top n element index, and then check of the each vector elements that existed inside the top n element index or not?

Parameters
NameTypeDescription
vectorVector

-

nInt32

-

Returns

a logical vector that indicates that each corresponding element is inside the top n elements?

method Take #
Take(Vector, IEnumerable(Of Int32))

Simplified (numPy) take method: 1) axis is always 0, 2) first argument is always a vector

Parameters
NameTypeDescription
vVector

List of values

indicesIEnumerable(Of Int32)

List of indices

Returns

Vector containing elements from vector 1 at the indicies in vector 2

method rand overload 2 #
rand(Int32, DoubleRange)

默认返回目标长度的[0-1]之间的随机数向量

Remarks

this method can be affected by the RandomExtensions.SetSeed() method.

Parameters
NameTypeDescription
sizeInt32

the length of the result vector, or n lements

method rand #
rand(DoubleRange, Int32)

获取一个指定长度的由目标区间范围内的随机数所构成的向量

Parameters
NameTypeDescription
rangeDoubleRange

-

size%Int32

函数所返回的向量的长度