adaptive_smoothing: Custom smoothing

View source: R/spct.smooth.spct.r

adaptive_smoothingR Documentation

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.


aphalo/photobiology documentation built on April 1, 2024, 6:48 p.m.