max_min#
- beatmap.utils.max_min(array)#
Finds maximum and minimum of an array.
If multiple max and min values exist, all are returned.
- Parameters:
- arrayarray
Array of values.
- Returns:
- maximumfloat
Maximum value of array.
- max_idxarray
For 2D max_idx[0] = i index, max_idx[1] = j index.
- minimumfloat
Minimum value of array.
- min_idxarray
For 2D min_idx[0] = i index, min_idx[1] = j index