WhittakerSmooth: Whittaker Smoother

View source: R/airPLS.R

WhittakerSmoothR Documentation

Whittaker Smoother

Description

penalized least squares algorithm for background fitting

Usage

WhittakerSmooth(x,w,lambda) 

Arguments

x

raman spectrum

w

binary masks (value of the mask is zero if a point belongs to peaks and one otherwise)

lambda

lambda is an adjustable parameter, it can be adjusted by user. The larger lambda is, the smoother z will be

differences

an integer indicating the order of the difference of penalties

Value

the fitted vector

Author(s)

Yizeng Liang ,Zhang Zhimin


zmzhang/airPLS_R documentation built on Aug. 5, 2023, 8:24 a.m.