Vespucci  1.0.0
Vespucci::Math::NonLinLeastSq Namespace Reference

Functions

VESPUCCI_EXPORT arma::vec EstimateGaussParams (arma::vec x, arma::vec y)
 Vespucci::Math::NonLinLeastSq::EstimateGaussParams. More...
 
VESPUCCI_EXPORT arma::vec EstimateLorentzParams (arma::vec x, arma::vec y)
 
VESPUCCI_EXPORT arma::vec FitGaussian (arma::vec x, arma::vec y)
 Vespucci::Math::NonLinLeastSq::FitGaussian. More...
 
VESPUCCI_EXPORT arma::vec FitLorentzian (arma::vec x, arma::vec y)
 
VESPUCCI_EXPORT arma::vec FitVoigt (arma::vec x, arma::vec y)
 

Function Documentation

arma::vec Vespucci::Math::NonLinLeastSq::EstimateGaussParams ( arma::vec  x,
arma::vec  y 
)

Vespucci::Math::NonLinLeastSq::EstimateGaussParams.

Parameters
x
y
Returns
When estimated sigma parameter is nonreal, returns sigma as the standard deviation of y

Definition at line 66 of file nonlinleastsq.cpp.

arma::vec Vespucci::Math::NonLinLeastSq::EstimateLorentzParams ( arma::vec  x,
arma::vec  y 
)

Definition at line 79 of file nonlinleastsq.cpp.

arma::vec Vespucci::Math::NonLinLeastSq::FitGaussian ( arma::vec  x,
arma::vec  y 
)

Vespucci::Math::NonLinLeastSq::FitGaussian.

Parameters
x
y
Returns
Returns parameters A, intensity, b, the center, and c, the RMS width

Definition at line 96 of file nonlinleastsq.cpp.

arma::vec Vespucci::Math::NonLinLeastSq::FitLorentzian ( arma::vec  x,
arma::vec  y 
)

Definition at line 109 of file nonlinleastsq.cpp.

arma::vec Vespucci::Math::NonLinLeastSq::FitVoigt ( arma::vec  x,
arma::vec  y 
)

Definition at line 124 of file nonlinleastsq.cpp.