Learn R Programming

photobiology (version 0.11.3)

adaptive_smoothing: Custom smoothing

Description

Generic implementation of the custom smoothing method

Usage

adaptive_smoothing(
  x,
  y,
  zero.limit.cnst = max(y) * 1e-04,
  smooth.limit = 0.001,
  smooth.threshold = max(y) * 0.1,
  ...
)

Arguments

x, y

numeric vectors of equal length.

smooth.limit

numeric mad/median value above which no smoothing is applied.

smooth.threshold

numeric y value above which no smoothing is applied.

zero.limit

numeric vector of length one or of the same leangth as x and y. Smaller values in y are forced to zero.