Vespucci  1.0.0
nonlinleastsq.cpp File Reference
#include "Math/Fitting/nonlinleastsq.h"
#include "Math/Fitting/linleastsq.h"
#include "Math/Accessory/Faddeeva.h"
#include <limits>

Go to the source code of this file.

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...
 

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.