ComPWA
Common Partial-Wave-Analysis Framework
ComPWA::Tools::FitFractions Class Reference

#include <FitFractions.hpp>

Classes

struct  DerivativeData
 

Public Member Functions

FitFractionList calculateFitFractionsWithCovarianceErrorPropagation (const std::vector< std::pair< IntensityComponent, IntensityComponent >> &Components, const ComPWA::Data::DataSet &PhspSample, const ComPWA::FitResult &Result)
 Calculates the fit fractions with errors via error propagation from the covariance matrix. More...
 

Private Member Functions

std::tuple< std::vector< double >, std::vector< std::vector< double > > > buildJacobiAndCovariance (const std::tuple< double, std::vector< DerivativeData >> &NominatorDerivatives, const std::tuple< double, std::vector< DerivativeData >> &DenominatorDerivatives, const ComPWA::FitResult &Result)
 
std::tuple< std::string, double, std::vector< FitFractions::DerivativeData > > getIntegralData (IntensityComponent IntensComponent, const ComPWA::Data::DataSet &PhspSample, const ComPWA::FitResult &Result)
 
std::tuple< double, std::vector< FitFractions::DerivativeData > > calculateIntensityIntegralData (ComPWA::Intensity &Intens, const ComPWA::Data::DataSet &PhspSample, const ComPWA::FitResult &Result)
 

Private Attributes

std::map< std::string, std::tuple< double, std::vector< DerivativeData > > > IntensityGradientDataMapping
 

Detailed Description

Definition at line 35 of file FitFractions.hpp.

+ Collaboration diagram for ComPWA::Tools::FitFractions:

Member Function Documentation

◆ buildJacobiAndCovariance()

std::tuple< std::vector< double >, std::vector< std::vector< double > > > ComPWA::Tools::FitFractions::buildJacobiAndCovariance ( const std::tuple< double, std::vector< DerivativeData >> &  NominatorDerivatives,
const std::tuple< double, std::vector< DerivativeData >> &  DenominatorDerivatives,
const ComPWA::FitResult Result 
)
private

Definition at line 88 of file FitFractions.cpp.

◆ calculateFitFractionsWithCovarianceErrorPropagation()

FitFractionList ComPWA::Tools::FitFractions::calculateFitFractionsWithCovarianceErrorPropagation ( const std::vector< std::pair< IntensityComponent, IntensityComponent >> &  Components,
const ComPWA::Data::DataSet PhspSample,
const ComPWA::FitResult Result 
)

Calculates the fit fractions with errors via error propagation from the covariance matrix.

The gradients are calculated via numerical differentiation:

\[ f´(x) = \frac{f(x+h) - f(x-h)}{2h} + O(h^2) \]

Definition at line 30 of file FitFractions.cpp.

◆ calculateIntensityIntegralData()

std::tuple< double, std::vector< FitFractions::DerivativeData > > ComPWA::Tools::FitFractions::calculateIntensityIntegralData ( ComPWA::Intensity Intens,
const ComPWA::Data::DataSet PhspSample,
const ComPWA::FitResult Result 
)
private

Definition at line 175 of file FitFractions.cpp.

◆ getIntegralData()

std::tuple< std::string, double, std::vector< FitFractions::DerivativeData > > ComPWA::Tools::FitFractions::getIntegralData ( IntensityComponent  IntensComponent,
const ComPWA::Data::DataSet PhspSample,
const ComPWA::FitResult Result 
)
private

Definition at line 153 of file FitFractions.cpp.

Member Data Documentation

◆ IntensityGradientDataMapping

std::map<std::string, std::tuple<double, std::vector<DerivativeData> > > ComPWA::Tools::FitFractions::IntensityGradientDataMapping
private

Definition at line 58 of file FitFractions.hpp.


The documentation for this class was generated from the following files: