Generic implementation of the custom smoothing method
adaptive_smoothing(
x,
y,
zero.limit.cnst = max(y) * 1e-04,
smooth.limit = 0.001,
smooth.threshold = max(y) * 0.1,
...
)
numeric vectors of equal length.
numeric vector of length one or of the same leangth as
x
and y
. Smaller values in y are forced to zero.
numeric mad/median value above which no smoothing is applied.
numeric y value above which no smoothing is applied.