Relacs  0.9.8
Namespaces | Functions | Variables
fitalgorithm.h File Reference
#include <cmath>
#include <vector>
#include <relacs/array.h>
Include dependency graph for fitalgorithm.h:
This graph shows which files directly or indirectly include this file:

Namespaces

 relacs
 

Functions

template<typename ForwardIterX , typename ForwardIterY , typename BasisFunc >
int linearFit (ForwardIterX firstx, ForwardIterX lastx, ForwardIterY firsty, ForwardIterY lasty, BasisFunc &funcs, ArrayD &params, const ArrayI &paramfit, ArrayD &uncert, double &chisq)
 
template<typename ContainerX , typename ContainerY , typename BasisFunc >
int linearFit (const ContainerX &x, const ContainerY &y, BasisFunc &funcs, ArrayD &params, const ArrayI &paramfit, ArrayD &uncert, double &chisq)
 
template<typename ForwardIterX , typename ForwardIterY , typename ForwardIterS , typename BasisFunc >
int linearFit (ForwardIterX firstx, ForwardIterX lastx, ForwardIterY firsty, ForwardIterY lasty, ForwardIterS firsts, ForwardIterS lasts, BasisFunc &funcs, ArrayD &params, const ArrayI &paramfit, ArrayD &uncert, double &chisq)
 
template<typename ContainerX , typename ContainerY , typename ContainerS , typename BasisFunc >
int linearFit (const ContainerX &x, const ContainerY &y, const ContainerS &s, BasisFunc &funcs, ArrayD &params, const ArrayI &paramfit, ArrayD &uncert, double &chisq)
 
template<typename ForwardIterX , typename ForwardIterY , typename ForwardIterS , typename FitFunc >
double chisq (ForwardIterX firstx, ForwardIterX lastx, ForwardIterY firsty, ForwardIterY lasty, ForwardIterS firsts, ForwardIterS lasts, FitFunc &f, ArrayD &params)
 
template<typename ContainerX , typename ContainerY , typename ContainerS , typename FitFunc >
double chisq (const ContainerX &x, const ContainerY &y, const ContainerS &s, FitFunc &f, ArrayD &params)
 
template<typename ForwardIterX , typename ForwardIterY , typename ForwardIterS , typename FitFunc >
int fitUncertainties (ForwardIterX firstx, ForwardIterX lastx, ForwardIterY firsty, ForwardIterY lasty, ForwardIterS firsts, ForwardIterS lasts, FitFunc &f, const ArrayD &params, const ArrayI &paramfit, ArrayD &uncert)
 
template<typename ContainerX , typename ContainerY , typename ContainerS , typename FitFunc >
int fitUncertainties (const ContainerX &x, const ContainerY &y, const ContainerS &s, FitFunc &f, const ArrayD &params, const ArrayI &paramfit, ArrayD &uncert)
 
template<typename MinFunc >
int simplexMin (MinFunc &f, ArrayD &params, const ArrayI &paramfit, ArrayD &uncert, double &chi, int *iter=NULL, ostream *os=NULL, double chieps=0.01, int maxiter=300)
 
template<typename ForwardIterX , typename ForwardIterY , typename ForwardIterS , typename FitFunc >
int simplexFit (ForwardIterX firstx, ForwardIterX lastx, ForwardIterY firsty, ForwardIterY lasty, ForwardIterS firsts, ForwardIterS lasts, FitFunc &f, ArrayD &params, const ArrayI &paramfit, ArrayD &uncert, double &chi, int *iter=NULL, ostream *os=NULL, double chieps=0.01, int maxiter=300)
 
template<typename ContainerX , typename ContainerY , typename ContainerS , typename FitFunc >
int simplexFit (const ContainerX &x, const ContainerY &y, const ContainerS &s, FitFunc &f, ArrayD &params, const ArrayI &paramfit, ArrayD &uncert, double &chisq, int *iter=NULL, ostream *os=NULL, double chieps=0.01, int maxiter=300)
 
template<typename ForwardIterX , typename ForwardIterY , typename ForwardIterS , typename FitFunc >
int marquardtFit (ForwardIterX firstx, ForwardIterX lastx, ForwardIterY firsty, ForwardIterY lasty, ForwardIterS firsts, ForwardIterS lasts, FitFunc &f, ArrayD &params, const ArrayI &paramfit, ArrayD &uncert, double &chi, int *iter=NULL, ostream *os=NULL, double chieps=0.0005, int maxiter=300)
 
template<typename ContainerX , typename ContainerY , typename ContainerS , typename FitFunc >
int marquardtFit (const ContainerX &x, const ContainerY &y, const ContainerS &s, FitFunc &f, ArrayD &params, const ArrayI &paramfit, ArrayD &uncert, double &chisq, int *iter=NULL, ostream *os=NULL, double chieps=0.0005, int maxiter=300)
 
double expFunc (double x, const ArrayD &p)
 
double expFuncDerivs (double x, const ArrayD &p, ArrayD &dfdp)
 
void expGuess (ArrayD &p, double y0, double x1, double y1, double x2, double y2)
 
double sineFunc (double x, const ArrayD &p)
 
double sineFuncDerivs (double x, const ArrayD &p, ArrayD &dfdp)
 
void savitzkyGolay (ArrayD &weights, int np, int nl, int m, int ld)
 
int gaussJordan (vector< ArrayD > &a, int n, ArrayD &b)
 
void covarSort (vector< ArrayD > &covar, const ArrayI &paramfit, int mfit)
 
template<typename MinFunc >
double simplexMinTry (vector< ArrayD > &p, ArrayD &y, ArrayD &psum, int ihi, double fac, int mfit, MinFunc &f, ArrayD &params, const ArrayI &paramfit)
 
template<typename ForwardIterX , typename ForwardIterY , typename ForwardIterS , typename FitFunc >
double simplexFitTry (vector< ArrayD > &p, ArrayD &y, ArrayD &psum, int ihi, double fac, int mfit, ForwardIterX firstx, ForwardIterX lastx, ForwardIterY firsty, ForwardIterY lasty, ForwardIterS firsts, ForwardIterS lasts, FitFunc &f, ArrayD &params, const ArrayI &paramfit)
 
template<typename ForwardIterX , typename ForwardIterY , typename ForwardIterS , typename FitFunc >
void marquardtCof (ForwardIterX firstx, ForwardIterX lastx, ForwardIterY firsty, ForwardIterY lasty, ForwardIterS firsts, ForwardIterS lasts, FitFunc &f, ArrayD &params, const ArrayI &paramfit, int mfit, double &chisq, vector< ArrayD > &alpha, ArrayD &beta)
 

Variables

static bool FitFlag = true