smooth¶
-
pydl.
smooth
(signal, owidth, edge_truncate=False)[source]¶ Replicates the IDL
SMOOTH()
function.Parameters: signal : array-like
The array to be smoothed.
owidth :
int
or array-likeWidth of the smoothing window. Can be a scalar or an array with length equal to the number of dimensions of
signal
.edge_truncate :
bool
, optionalSet
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