pyhctsa.operations.distribution.min_max

pyhctsa.operations.distribution.min_max(y, min_or_max='max')

The maximum and minimum values of the input data vector.

Parameters:
y : array-like

Input time series or data vector

min_or_max : str, optional

Return either the minimum or maximum of y:

  • ’min’: minimum of y

  • ’max’: maximum of y

Default is 'max'.

Returns:

The calculated min or max value.

Return type:

float