![]() |
AmpGen 2.1
|
the product of a fit). Can be used for calculating the uncertainties on observables such as Fit fractions, or for producing uncertainty bands in predictions on figures. Usage is
Definition at line 32 of file ErrorPropagator.h.
Public Member Functions | |
LinearErrorPropagator (const std::vector< MinuitParameter * > ¶ms) | |
< Constructor for LinearErrorPropagator taking a vector of free parameters, assumes a diagonal covariance matrix taking the parameter uncertainties. | |
LinearErrorPropagator (const MinuitParameterSet ¶ms) | |
Constructor for LinearErrorPropagator, taking a covariance matrix and a vector parameters. | |
LinearErrorPropagator (const TMatrixD &reducedCovarianceMatrix, const std::vector< MinuitParameter * > ¶ms) | |
Calculates the uncertainty on functor fcn. | |
template<class FCN> | |
double | operator() (FCN fcn) const |
Calculates the error on functor fcn (should take no arguments and return a double). | |
double | getError (const std::function< double(void)> &fcn) const |
Calculate the uncertainties on a functor that returns a vector of size RANK. | |
std::vector< double > | getVectorError (const std::function< std::vector< double >(void)> &fcn, size_t RANK) const |
std::vector< double > | combinationWeights (const std::vector< std::function< double(void)> > &functions) |
Calculate the variance-covariance matrix of functor set functions. | |
TMatrixD | covarianceMatrix (const std::vector< std::function< double(void)> > &functions) |
TMatrixD | correlationMatrix (const std::vector< std::function< double(void)> > &functions) |
Calculate the correlation matrix of functor set functions. | |
std::pair< double, double > | combinationCovWeighted (const std::vector< std::function< double(void)> > &functions) |
Calculate the covariance-matrix weighted combination of functor set functions. | |
void | add (const LinearErrorPropagator &p2) |
void | reset () |
size_t | size () const |
const TMatrixD & | cov () const |
const std::map< std::string, size_t > | posMap () const |
const std::vector< MinuitParameter * > & | params () const |
|
explicit |
Constructor for LinearErrorPropagator, taking a MinuitParameterSet as argument, assumes a diagonal coviarance matrix using the uncertainties on parameters.
|
explicit |
AmpGen::LinearErrorPropagator::LinearErrorPropagator | ( | const TMatrixD & | reducedCovarianceMatrix, |
const std::vector< MinuitParameter * > & | params ) |
void AmpGen::LinearErrorPropagator::add | ( | const LinearErrorPropagator & | p2 | ) |
std::pair< double, double > AmpGen::LinearErrorPropagator::combinationCovWeighted | ( | const std::vector< std::function< double(void)> > & | functions | ) |
std::vector< double > AmpGen::LinearErrorPropagator::combinationWeights | ( | const std::vector< std::function< double(void)> > & | functions | ) |
TMatrixD AmpGen::LinearErrorPropagator::correlationMatrix | ( | const std::vector< std::function< double(void)> > & | functions | ) |
const TMatrixD & AmpGen::LinearErrorPropagator::cov | ( | ) | const |
TMatrixD AmpGen::LinearErrorPropagator::covarianceMatrix | ( | const std::vector< std::function< double(void)> > & | functions | ) |
double AmpGen::LinearErrorPropagator::getError | ( | const std::function< double(void)> & | fcn | ) | const |
std::vector< double > AmpGen::LinearErrorPropagator::getVectorError | ( | const std::function< std::vector< double >(void)> & | fcn, |
size_t | RANK ) const |
|
inline |
Definition at line 43 of file ErrorPropagator.h.
const std::vector< MinuitParameter * > & AmpGen::LinearErrorPropagator::params | ( | ) | const |
const std::map< std::string, size_t > AmpGen::LinearErrorPropagator::posMap | ( | ) | const |
void AmpGen::LinearErrorPropagator::reset | ( | ) |
size_t AmpGen::LinearErrorPropagator::size | ( | ) | const |