ILNumerics Ultimate VS

Statisticsselect Method (InArrayDouble, Int32, Int32)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Selects the k-th smallest element from an array along a specific dimension.

[ILNumerics Statistics Toolbox]

Namespace:  ILNumerics.Toolboxes
Assembly:  ILNumerics.Toolboxes.Statistics (in ILNumerics.Toolboxes.Statistics.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax

public static RetArray<double> select(
	InArray<double> A,
	int k,
	int dim = -1
)

Parameters

A
Type: ILNumericsInArrayDouble
Input array.
k
Type: SystemInt32
The element to find. If k is smaller 1 or larger than the number of elements in list, the smallest/largest value will be returned.
dim (Optional)
Type: SystemInt32
[Optional] Dimension to operate along. If omitted operates along the first non singleton dimension (i.e. != 1).

Return Value

Type: RetArrayDouble

Array having the specified dimension reduced to the length 1 with the value of the k-the smallest element along that dimension.

Exception: If the selected dimension is of size 0 it will remain 0 (an empty set).

Remarks

[ILNumerics Statistics Toolbox]

See Also

Reference