Warning

You are reading the documentation related to the development version. Go here if you are looking for the documentation of the stable release.

spectrochempy.amin

amin(dataset, dim=None, keepdims=False, **kwargs)[source]

Return the maximum of the dataset or maxima along given dimensions.

Parameters
  • dataset (array_like) – Input array or object that can be converted to an array.

  • dim (None or int or dimension name or tuple of int or dimensions, optional) – Dimension or dimensions along which to operate. By default, flattened input is used. If this is a tuple, the minimum is selected over multiple dimensions, instead of a single dimension or all the dimensions as before.

  • keepdims (bool, optional) – If this is set to True, the dimensions which are reduced are left in the result as dimensions with size one. With this option, the result will broadcast correctly against the input array.

Returns

amin – Minimum of the data. If dim is None, the result is a scalar value. If dim is given, the result is an array of dimension ndim - 1 .

See also

amax

The maximum value of a dataset along a given dimension, propagating NaNs.

minimum

Element-wise minimum of two datasets, propagating any NaNs.

maximum

Element-wise maximum of two datasets, propagating any NaNs.

fmax

Element-wise maximum of two datasets, ignoring any NaNs.

fmin

Element-wise minimum of two datasets, ignoring any NaNs.

argmax

Return the indices or coordinates of the maximum values.

argmin

Return the indices or coordinates of the minimum values.