max_height#
- max_height(y, percentile=None, absolute=False)[source]#
Get maximum value of y curve and its index.
- Parameters:
y (ndarray) â Array of y values.
percentile (float | None) â Return that percentile value if provided, otherwise just return max value.
absolute (bool) â Use absolute y value.
- Returns:
The maximum y value and index.
- Return type:
Tuple[float, int]