powered by
Ideas from Rolling Ball algorithm for X-ray spectra by M.A.Kneen and H.J. Annegarn. Variable window width has been left out
baseline.rollingBall(spectra, wm, ws)
Matrix with spectra in rows
Width of local window for minimization/maximization
Width of local window for smoothing
Matrix of baselines corresponding to spectra spectra
spectra
Matrix of baseline corrected spectra
M.A. Kneen, H.J. Annegarn: Algorithm for fitting XRF, SEM and PIXE X-ray spectra backgrounds
# NOT RUN { data(milk) bc.rollingBall <- baseline(milk$spectra[1,, drop=FALSE], wm=200, ws=200, method='rollingBall') # } # NOT RUN { plot(bc.rollingBall) # }
Run the code above in your browser using DataLab