#include "CommonTools/Statistics/src/IncompleteGammaComplement.h"
#include "CommonTools/Statistics/interface/ChiSquaredProbability.h"
Go to the source code of this file.
Functions | |
float | ChiSquaredProbability (double chiSquared, double nrDOF) |
Returns the probability that an observation, correctly described by a model with nrDOF, will give rise to a chi-squared larger than the one observed; from this, one can interpret this probability as how likely it is to observe as high (or higher) a chi-squared. | |
float | LnChiSquaredProbability (double chiSquared, double nrDOF) |
float ChiSquaredProbability | ( | double | chiSquared, | |
double | nrDOF | |||
) |
Returns the probability that an observation, correctly described by a model with nrDOF, will give rise to a chi-squared larger than the one observed; from this, one can interpret this probability as how likely it is to observe as high (or higher) a chi-squared.
source: Numerical Recipes
Definition at line 13 of file ChiSquaredProbability.cc.
References IncompleteGammaComplement::value().
Referenced by CSCOfflineMonitor::analyze(), PrimaryVertexAnalyzer::analyze(), ConfigurableTrimmedVertexFinder::clean(), CSCValidation::doSegments(), VertexFitterResult::fill(), MuonTrackAnalyzer::fillPlots(), CSCSegAlgoTC::isSegmentGood(), egammaisolation::EgammaTrackSelector::operator()(), ChiSquared::probability(), CSCSegAlgoST::prune_bad_hits(), CSCSegAlgoHitPruning::pruneBadHits(), CSCSegAlgoTC::segmentSort(), and PrimaryVertexMonitor::vertexPlots().
00014 { return IncompleteGammaComplement::value( nrDOF / 2 , chiSquared / 2 ); }
float LnChiSquaredProbability | ( | double | chiSquared, | |
double | nrDOF | |||
) |
Definition at line 16 of file ChiSquaredProbability.cc.
References IncompleteGammaComplement::ln().
Referenced by ChiSquared::lnProbability(), and GlobalTrajectoryBuilderBase::trackProbability().
00017 { return IncompleteGammaComplement::ln( nrDOF / 2 , chiSquared / 2 ); }