frlearn.array_functions.least¶
- frlearn.array_functions.least(a, k: int, axis: int = - 1)[source]¶
Returns the k least values of a along the specified axis, in order.
- Parameters
- andarray
Input array of values.
- k: int
Number of values to return. Should be a positive integer not larger than a along axis.
- axisint, default=-1
The axis along which values are selected.
- Returns
- least_along_axisndarray
An array with the same shape as a, with the specified axis reduced according to the value of k.