Vespucci  1.0.0
Vespucci::Math::Baseline Namespace Reference

Functions

VESPUCCI_EXPORT arma::vec RollingBallBaseline (const arma::vec &spectrum, arma::vec &baseline, arma::uword wm, arma::uword ws)
 Vespucci::Math::Baseline::RollingBallBaseline. More...
 
VESPUCCI_EXPORT arma::mat RollingBallBaselineMat (const arma::mat &spectra, arma::mat &baselines, arma::uword wm, arma::uword ws)
 

Function Documentation

arma::vec Vespucci::Math::Baseline::RollingBallBaseline ( const arma::vec &  spectrum,
arma::vec &  baseline,
arma::uword  wm,
arma::uword  ws 
)

Vespucci::Math::Baseline::RollingBallBaseline.

Parameters
spectrum
wm
ws
Returns
based on implementation of rolling balll baseline correction in the R package baseline. Indices are a bit weird. This is due to tranlation from the R baseline package. R indexing starts at 1. The decision has been made to subtract one every time an index is used rather than modifying other terms.

Definition at line 33 of file rollingball.cpp.

arma::mat Vespucci::Math::Baseline::RollingBallBaselineMat ( const arma::mat &  spectra,
arma::mat &  baselines,
arma::uword  wm,
arma::uword  ws 
)

Definition at line 123 of file rollingball.cpp.