QMCPACK
Fitting.h
Go to the documentation of this file.
1 //////////////////////////////////////////////////////////////////////////////////////
2 // This file is distributed under the University of Illinois/NCSA Open Source License.
3 // See LICENSE file in top directory for details.
4 //
5 // Copyright (c) 2016 Jeongnim Kim and QMCPACK developers.
6 //
7 // File developed by: Paul R. C. Kent, kentpr@ornl.gov, Oak Ridge National Laboratory
8 //
9 // File created by: Paul R. C. Kent, kentpr@ornl.gov, Oak Ridge National Laboratory
10 //////////////////////////////////////////////////////////////////////////////////////
11 
12 
13 // http://pathintegrals.info //
14 /////////////////////////////////////////////////////////////
15 
16 #ifndef FITTING_H
17 #define FITTING_H
18 
19 #include "Blitz.h"
20 #include "MatrixOps.h"
21 
22 /// LitFit performs a least-squares fit to data given in y with the
23 /// errors given by sigma. It performs a fit to a function of the
24 /// form \f[ y_{\mathrm{fit}}(x) \approx \sum_{j=0}^M a_j F_j(x) \f].
25 /// \f$ F_{ij} = F_j(x_i) \f$.
27  Array<double, 1>& sigma, // inputs
28  Array<double, 2>& F, // input
30  Array<double, 1>& errors); // outputs
31 
33  Array<double, 1>& sigma, // inputs
34  Array<double, 2>& F, // input
36  Array<double, 1>& error, // outputs
37  double tolerance);
38 
39 #endif
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.
void error(char const *m)
Definition: Standard.h:204
void LinFitSVD(Array< double, 1 > &y, Array< double, 1 > &sigma, Array< double, 2 > &F, Array< double, 1 > &a, Array< double, 1 > &error, double tolerance)