find_bump_limits#
- ripplemapper.contour.find_bump_limits(large_changes: array, current: int = 0, max_size: int = 10, bumps: list[tuple[int, int]] = []) list[tuple[int, int]][source]#
Recursive function to find the limits of “small” bumps in the data.
- Parameters:
large_changes (np.array) – Array of indices where large changes in the data occur.
current (int, optional) – Current index to start from, by default 0.
max_size (int, optional) – Maximum size of a bump, by default 10.
bumps (list[tuple[int, int]], optional) – List of tuples representing the start and end indices of each bump, by default [].
- Returns:
List of tuples representing the start and end indices of each bump.
- Return type: