Ranks
01 Syntax
Microsoft.VisualBasic.Math.Ranks
02 Methods
03 Members
Best``1(
IEnumerable(Of ``0), IEnumerable(Of Ranking(Of ``0)))Type Parameters
| Name | Description |
|---|---|
T |
Parameters
| Name | Type | Description |
|---|---|---|
source | IEnumerable(Of ``0) | - |
Evaluate | IEnumerable(Of Ranking(Of ``0)) | - |
Returns
Ranks值最小的是认为最好的
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
| Name | Type | Description |
|---|---|---|
data | IEnumerable(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])
Best(
IEnumerable(Of T), IEnumerable(Of Ranking(Of T)))Sort(
IEnumerable(Of T), IEnumerable(Of Ranking(Of T)))