nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.Runtime / Ranks

Ranks

Full name Microsoft.VisualBasic.Math.Ranks Assembly Microsoft.VisualBasic.Runtime Members 4

01 Syntax

Microsoft.VisualBasic.Math.Ranks

02 Methods

NameOverloadsSummary
Best 1
argsort 1 Perform an indirect sort along the given axis using the algorithm specified by the kind keyword.
Best 1
Sort 1

03 Members

method Best #
Best``1(IEnumerable(Of ``0), IEnumerable(Of Ranking(Of ``0)))
Type Parameters
NameDescription
T
Parameters
NameTypeDescription
sourceIEnumerable(Of ``0)

-

EvaluateIEnumerable(Of Ranking(Of ``0))

-

Returns

Ranks值最小的是认为最好的

method argsort #
argsort(IEnumerable(Of Double))

Perform an indirect sort along the given axis using the algorithm specified by the kind keyword. It returns an array Of indices Of the same shape As a that index data along the given axis in sorted order.

Parameters
NameTypeDescription
dataIEnumerable(Of Double)

-

Returns

Returns the indices that would sort an array.

Example

x = np.array([3, 1, 2]) np.argsort(x) array([1, 2, 0])

method Best #
Best(IEnumerable(Of T), IEnumerable(Of Ranking(Of T)))
method Sort #
Sort(IEnumerable(Of T), IEnumerable(Of Ranking(Of T)))