adaptive_smoothing: Custom smoothing

Description Usage Arguments

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

Description

Generic implementation of the custom smoothing method

Usage

1
2
3
4
5
6
7
8
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.

zero.limit

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

smooth.limt

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

smooth.thershold

numeric y value above which no smoothing is applied.


photobiology documentation built on April 4, 2021, 5:05 p.m.