Skip to main content

minmax

lq.minmax(values, margin: 0%)(source)

Returns the minimum and maximum value of an array, ignoring float.nan values. Returns (none, none) if the array is empty or contains only float.nan values.

Parameters

values : array

Values to compute the minimum and the maximum of.

margin : ratio    default: 0%

Adds optional margins in percent of the range max - min.