QMCPACK
Fitting.h File Reference
+ Include dependency graph for Fitting.h:

Go to the source code of this file.

Functions

void LinFitLU (Array< double, 1 > &y, Array< double, 1 > &sigma, Array< double, 2 > &F, Array< double, 1 > &a, Array< double, 1 > &errors)
 LitFit performs a least-squares fit to data given in y with the errors given by sigma. More...
 
void LinFitSVD (Array< double, 1 > &y, Array< double, 1 > &sigma, Array< double, 2 > &F, Array< double, 1 > &a, Array< double, 1 > &error, double tolerance)
 

Function Documentation

◆ LinFitLU()

void LinFitLU ( Array< double, 1 > &  y,
Array< double, 1 > &  sigma,
Array< double, 2 > &  F,
Array< double, 1 > &  a,
Array< double, 1 > &  errors 
)

LitFit performs a least-squares fit to data given in y with the errors given by sigma.

It performs a fit to a function of the form

\[ y_{\mathrm{fit}}(x) \approx \sum_{j=0}^M a_j F_j(x) \]

. $ F_{ij} = F_j(x_i) $.

◆ LinFitSVD()

void LinFitSVD ( Array< double, 1 > &  y,
Array< double, 1 > &  sigma,
Array< double, 2 > &  F,
Array< double, 1 > &  a,
Array< double, 1 > &  error,
double  tolerance 
)