smooth_bumps#

ripplemapper.contour.smooth_bumps(contour, max_size: int = 40, std_factor: float = 2.0)[source]#

Function to smooth out bumps in the contour data.

Parameters:
  • contour (RippleContour) – Contour object containing the data to be smoothed.

  • max_size (int, optional) – Maximum size of a bump, by default 40.

  • std_factor (float, optional) – Standard deviation factor for identifying large changes, by default 2.0.

Returns:

The smoothed RippleContour object.

Return type:

RippleContour