Vespucci  1.0.0
nonlinleastsq.h File Reference
#include <mlpack/core.hpp>
#include "Global/libvespucci.h"

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::NonLinLeastSq
 

Functions

double GaussianFn (double t, const double *p)
 Gaussian. More...
 
double LorentzianFn (double t, const double *p)
 Lorentzian. More...
 
double VoigtFn (double t, const double *p)
 VoigtFn. More...
 
VESPUCCI_EXPORT arma::vec Vespucci::Math::NonLinLeastSq::EstimateGaussParams (arma::vec x, arma::vec y)
 Vespucci::Math::NonLinLeastSq::EstimateGaussParams. More...
 
VESPUCCI_EXPORT arma::vec Vespucci::Math::NonLinLeastSq::EstimateLorentzParams (arma::vec x, arma::vec y)
 
VESPUCCI_EXPORT arma::vec Vespucci::Math::NonLinLeastSq::FitGaussian (arma::vec x, arma::vec y)
 Vespucci::Math::NonLinLeastSq::FitGaussian. More...
 
VESPUCCI_EXPORT arma::vec Vespucci::Math::NonLinLeastSq::FitLorentzian (arma::vec x, arma::vec y)
 
VESPUCCI_EXPORT arma::vec Vespucci::Math::NonLinLeastSq::FitVoigt (arma::vec x, arma::vec y)
 

Function Documentation

double GaussianFn ( double  t,
const double *  p 
)

Gaussian.

Parameters
tvalues of t or x...
pparameters A, b (mu), c (sigma), in that order
Returns

Definition at line 31 of file nonlinleastsq.cpp.

double LorentzianFn ( double  t,
const double *  p 
)

Lorentzian.

Parameters
t
pparameters I, gamma and x0, in that order
Returns

Definition at line 42 of file nonlinleastsq.cpp.

double VoigtFn ( double  t,
const double *  p 
)

VoigtFn.

Parameters
t
pamplitude, center, sigma, gamma
Returns

Definition at line 53 of file nonlinleastsq.cpp.