smooth¶
- pydl.smooth(signal, owidth, edge_truncate=False)[source]¶
Replicates the IDL
SMOOTH()
function.- Parameters
- signalarray-like
The array to be smoothed.
- owidth
int
or array-like Width of the smoothing window. Can be a scalar or an array with length equal to the number of dimensions of
signal
.- edge_truncate
bool
, optional Set
edge_truncate
toTrue
to apply smoothing to all points. Points near the edge are normally excluded from smoothing.
- Returns
- array-like
A smoothed array with the same dimesions and type as
signal
.
References