Vespucci  1.0.0
linleastsq.h File Reference

Go to the source code of this file.

Namespaces

 Vespucci
 A namespace for "global" functions, including math functions.
 
 Vespucci::Math
 A namespace for math functions relating to linear least squares regression.
 
 Vespucci::Math::LinLeastSq
 

Functions

VESPUCCI_EXPORT arma::uword Vespucci::Math::LinLeastSq::IModPoly (const arma::vec &spectrum, const arma::vec &abscissa, arma::vec &baseline, arma::vec &corrected, double &err, const arma::uword poly_order, const arma::uword max_it, const double threshold)
 Vespucci::Math::LinLeastSq::IModPoly Perform the Vancouver Raman Algorithm to correct baseline. More...
 
double Vespucci::Math::LinLeastSq::CalcDev (const arma::vec &spectrum, const arma::vec &fit)
 Vespucci::Math::LinLeastSq::CalcDev. More...
 
arma::uvec Vespucci::Math::LinLeastSq::NonPeakInd (const arma::vec &spectrum, const double dev)
 Vespucci::Math::LinLeastSq::NonPeakInd. More...
 
arma::vec Vespucci::Math::LinLeastSq::CalcPoly (const arma::vec &coefs, const arma::vec &x)
 Vespucci::Math::LinLeastSq::CalcPoly Calculate the values of a polynomial. More...
 
VESPUCCI_EXPORT arma::mat Vespucci::Math::LinLeastSq::OrdinaryLeastSquares (const arma::mat &X, const arma::mat &y)
 Vespucci::Math::LinLeastSq::OrdinaryLeastSquares Perform Squares. More...
 
VESPUCCI_EXPORT arma::mat Vespucci::Math::LinLeastSq::OrdinaryLeastSquares (const arma::mat &X, const arma::mat &y, arma::mat &coef_errors, arma::mat &predicted)
 
VESPUCCI_EXPORT arma::vec Vespucci::Math::LinLeastSq::OrdinaryLeastSquares (const arma::mat &X, const arma::vec &y, arma::vec &fit, std::map< std::string, double > &stats)
 
VESPUCCI_EXPORT arma::mat Vespucci::Math::LinLeastSq::Vandermonde (const arma::vec &x, const int poly_order)
 Vespucci::Math::LinLeastSq::Vandermonde Build a Vandermonde matrix for OLS. More...
 
double Vespucci::Math::LinLeastSq::CalcErr (const double &dev, const double &prev_dev)
 Vespucci::Math::LinLeastSq::CalcErr Calculate the error criterion. More...
 
VESPUCCI_EXPORT arma::vec Vespucci::Math::LinLeastSq::FitGaussian (const arma::vec &x, const arma::vec &y, arma::vec &fit, std::map< std::string, double > &stats)
 Vespucci::Math::LinLeastSq::FitGaussian. More...