SpectrumBackground(y,iterations=100,decreasing=FALSE,order=c("2","4","6","8"),
smoothing=FALSE,window=c("3","5","7","9","11","13","15"),compton=FALSE)
TRUE
the window is decreasing, otherwise the window is
increasing.New value in the channel $i$ is calculated (in the case of second-order clipping filter) with formula:
$$v_p(i)=min{v_{p-1}(i),(v_{p-1}(i+p)+v_{p-1}(i-p))/2}$$
M. Morh�c, J. Kliman, V. Matoucek, M. Veselsk�, I. Turzo.: Background elimination methods for multidimensional gamma-ray spectra. NIM, A401 (1997) 113-132.
D. D. Burgess, R. J. Tervo: Background estimation for gamma-ray spectroscopy. NIM 214 (1983), 431-434.