|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #ifndef BaseFunctionFitterHXX
8 #define BaseFunctionFitterHXX
16 #include "CLHEP/Units/SystemOfUnits.h"
17 #include "CLHEP/Units/PhysicalConstants.h"
52 void init(
const unsigned nb_coefficients);
74 const unsigned int first_point,
75 const unsigned int last_point,
Eigen::Matrix< double, Eigen::Dynamic, 1 > VectorX
Dynamic Vector - dynamic allocation.
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
const Amg::VectorX & coefficients() const
get the coefficients determined by the fit to the sample points
void init()
default initialization method
Amg::MatrixX m_A
coefficient matrix for the fit
void set_number_of_coefficients(const unsigned nb_coefficients)
set the number of fit parameters (coefficients) of the base functions to nb_coefficients
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
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" s...
Amg::VectorX m_alpha
coefficients of the base functions after the fit
BaseFunctionFitter()
default constructor, the number of fit parameters will be set to 5
unsigned int m_nb_coefficients
number of coefficients
Amg::VectorX m_b
m_A*m_alpha = m_b;
int number_of_coefficients() const
get the number of fit parameters (coefficients) of the base functions to be fitted