ATLAS Offline Software
|
#include <BaseFunctionFitter.h>
Public Member Functions | |
BaseFunctionFitter () | |
default constructor, the number of fit parameters will be set to 5 More... | |
BaseFunctionFitter (const unsigned nb_coefficients) | |
constructor, the number of fit parameters is set to nb_coefficients More... | |
int | number_of_coefficients () const |
get the number of fit parameters (coefficients) of the base functions to be fitted More... | |
const Amg::VectorX & | coefficients () const |
get the coefficients determined by the fit to the sample points More... | |
void | set_number_of_coefficients (const unsigned nb_coefficients) |
set the number of fit parameters (coefficients) of the base functions to nb_coefficients More... | |
void | fit_parameters (const std::vector< SamplePoint > &sample_point, const unsigned int first_point, const unsigned int last_point, const BaseFunction &base_function) |
perform a fit of the base functions (base_function) to the sample points as given in "sample_point" starting at the sample point first_point and stopping at the point last_point, 1 <= first_point < last_point <= size of the sample_point vector; the method returns true, if the fit failed More... | |
Private Member Functions | |
void | init () |
default initialization method More... | |
void | init (const unsigned nb_coefficients) |
initialization method: the number of fit parameters (coefficients) is set to nb_coefficients More... | |
Private Attributes | |
unsigned int | m_nb_coefficients {0} |
number of coefficients More... | |
Amg::MatrixX | m_A {} |
coefficient matrix for the fit More... | |
Amg::VectorX | m_alpha {} |
coefficients of the base functions after the fit More... | |
Amg::VectorX | m_b {} |
m_A*m_alpha = m_b; More... | |
This class performs a fit of a linear combination of base functions to a set of sample points.
Definition at line 39 of file BaseFunctionFitter.h.
MuonCalib::BaseFunctionFitter::BaseFunctionFitter | ( | ) |
default constructor, the number of fit parameters will be set to 5
Definition at line 10 of file BaseFunctionFitter.cxx.
MuonCalib::BaseFunctionFitter::BaseFunctionFitter | ( | const unsigned | nb_coefficients | ) |
constructor, the number of fit parameters is set to nb_coefficients
Definition at line 13 of file BaseFunctionFitter.cxx.
const Amg::VectorX & MuonCalib::BaseFunctionFitter::coefficients | ( | ) | const |
get the coefficients determined by the fit to the sample points
Definition at line 30 of file BaseFunctionFitter.cxx.
void MuonCalib::BaseFunctionFitter::fit_parameters | ( | const std::vector< SamplePoint > & | sample_point, |
const unsigned int | first_point, | ||
const unsigned int | last_point, | ||
const BaseFunction & | base_function | ||
) |
perform a fit of the base functions (base_function) to the sample points as given in "sample_point" starting at the sample point first_point and stopping at the point last_point, 1 <= first_point < last_point <= size of the sample_point vector; the method returns true, if the fit failed
Definition at line 36 of file BaseFunctionFitter.cxx.
|
private |
|
private |
initialization method: the number of fit parameters (coefficients) is set to nb_coefficients
Definition at line 18 of file BaseFunctionFitter.cxx.
int MuonCalib::BaseFunctionFitter::number_of_coefficients | ( | ) | const |
get the number of fit parameters (coefficients) of the base functions to be fitted
Definition at line 27 of file BaseFunctionFitter.cxx.
void MuonCalib::BaseFunctionFitter::set_number_of_coefficients | ( | const unsigned | nb_coefficients | ) |
set the number of fit parameters (coefficients) of the base functions to nb_coefficients
Definition at line 33 of file BaseFunctionFitter.cxx.
|
private |
coefficient matrix for the fit
Definition at line 44 of file BaseFunctionFitter.h.
|
private |
coefficients of the base functions after the fit
Definition at line 45 of file BaseFunctionFitter.h.
|
private |
m_A*m_alpha = m_b;
Definition at line 46 of file BaseFunctionFitter.h.
|
private |
number of coefficients
Definition at line 43 of file BaseFunctionFitter.h.