Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

extract/lib/nllsqfit_fn.c File Reference

Fitting functions to be used with nllsqfit_bnd, to be included in C_mathlibs. More...

Go to the source code of this file.

Functions

long nllsqfit_lorentz (long *mode, long *npts, long *npar, long *ldfj, double par[], double f[], double fjac[], long *nstate, long *iuser, double x_n_sig[])
long nllsqfit_gaussian (long *mode, long *npts, long *npar, long *ldfj, double par[], double f[], double fjac[], long *nstate, long *iuser, double x_n_sig[])
long nllsqfit_NNgaussian (long *mode, long *npts, long *npar, long *ldfj, double par[], double f[], double fjac[], long *nstate, long *iuser, double x_n_sig[])
long nllsqfit_quad (long *mode, long *npts, long *npar, long *ldfj, double par[], double f[], double fjac[], long *nstate, long *iuser, double x_n_sig[])


Detailed Description

Fitting functions to be used with nllsqfit_bnd, to be included in C_mathlibs.

Copyright:
(c) 2002 INPL
Date:
Date
2004/03/09 16:11:50
Author:
Yannick Copin <y.copin@ipnl.in2p3.fr>

Author
ycopin
Version:
Revision
1.5

Id
nllsqfit_fn.c,v 1.5 2004/03/09 16:11:50 ycopin Exp

Definition in file nllsqfit_fn.c.


Function Documentation

long nllsqfit_lorentz long *  mode,
long *  npts,
long *  npar,
long *  ldfj,
double  par[],
double  f[],
double  fjac[],
long *  nstate,
long *  iuser,
double  x_n_sig[]
 

Normalized Lorentz fit w/ nllsqfit_bnd proc. The array x_n_sig[0..2*npts-1] is filled prior to call with

  • x_n_sig[0..npts-1]: x
  • x_n_sig[npts..2*npts-1]: y-sigma Fit function:

    \[ f_{I,\mu,\sigma}(x) = \frac{I}{\sigma\pi} \frac{1}{1+\left(\frac{x-\mu}{\sigma}\right)^2} \]

    with $I,\mu,\sigma$ in par[0,1,2]

Definition at line 35 of file nllsqfit_fn.c.

References x.

long nllsqfit_gaussian long *  mode,
long *  npts,
long *  npar,
long *  ldfj,
double  par[],
double  f[],
double  fjac[],
long *  nstate,
long *  iuser,
double  x_n_sig[]
 

Normalized Gaussian fit w/ nllsqfit_bnd proc. The array x_n_sig[0..2*npts-1] is filled prior to call with

  • x_n_sig[0..npts-1]: x
  • x_n_sig[npts..2*npts-1]: y-sigma Fit function:

    \[ f_{I,\mu,\sigma}(x) = \frac{I}{\sigma\sqrt{2*\pi}} \exp{-\frac{1}{2}\left(\frac{x-\mu}{\sigma}\right)^2} \]

    with $I,\mu,\sigma$ in par[0,1,2]

Definition at line 84 of file nllsqfit_fn.c.

References x.

Referenced by gaussian_mpup().

long nllsqfit_NNgaussian long *  mode,
long *  npts,
long *  npar,
long *  ldfj,
double  par[],
double  f[],
double  fjac[],
long *  nstate,
long *  iuser,
double  x_n_sig[]
 

Non-normalized Gaussian fit w/ nllsqfit_bnd proc. The array x_n_sig[0..2*npts-1] is filled prior to call with

  • x_n_sig[0..npts-1]: x
  • x_n_sig[npts..2*npts-1]: y-sigma Fit function:

    \[ f_{I,\mu,\sigma}(x) = I\exp{-\frac{1}{2}\left(\frac{x-\mu}{\sigma}\right)^2} \]

    with $I,\mu,\sigma$ in par[0,1,2]

Definition at line 132 of file nllsqfit_fn.c.

References x.

long nllsqfit_quad long *  mode,
long *  npts,
long *  npar,
long *  ldfj,
double  par[],
double  f[],
double  fjac[],
long *  nstate,
long *  iuser,
double  x_n_sig[]
 

Quadratic fit w/ nllsqfit_bnd proc. The array x_n_sig[0..2*npts-1] is filled prior to call with

  • x_n_sig[0..npts-1]: x
  • x_n_sig[npts..2*npts-1]: y-sigma Fit function:

    \[ f_{a,b,c}(x) = a*(x-b)^2 + c \]

    with $a,b,c$ in par[0,1,2]

Definition at line 179 of file nllsqfit_fn.c.

References x.

Referenced by main().


Generated on Wed Oct 26 23:59:59 2005 for Snifs by doxygen 1.3.5