smooth#

smooth(y, box_pts, shape='rectangular')[source]#

Smoothing function.

Parameters:
  • y (ndarray[Any, dtype[float64]]) – The data to be smoothed.

  • box_pts (float) – Half-width of the smoothing window.

  • shape (Literal[‘rectangular’, ‘gaussian’, ‘savgol’]) – The kernel used to smooth the data

Return type:

ndarray[Any, dtype[float64]]

Returns:

The smoothed data.