CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_5_2_9/src/CommonTools/Statistics/interface/ChiSquaredProbability.h File Reference

Go to the source code of this file.

Functions

float ChiSquaredProbability (double chiSquared, double nrDOF)
float LnChiSquaredProbability (double chiSquared, double nrDOF)

Function Documentation

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 PhotonValidator::analyze(), ElectronConversionRejectionValidator::analyze(), PhotonAnalyzer::analyze(), PrimaryVertexAnalyzer::analyze(), TkConvValidator::analyze(), PrimaryVertexAnalyzer4PU::analyzeVertexCollection(), ConversionProducer::buildCollection(), ConfigurableTrimmedVertexFinder::clean(), egammaisolation::EgammaTrackExtractor::deposit(), CSCOfflineMonitor::doSegments(), CSCValidation::doSegments(), VertexFitterResult::fill(), MuonTrackAnalyzer::fillPlots(), recoBSVTagInfoValidationAnalyzer::fillRecoToSim(), SVTagInfoValidationAnalyzer::fillRecoToSim(), SVTagInfoValidationAnalyzer::fillSimToReco(), recoBSVTagInfoValidationAnalyzer::fillSimToReco(), CSCSegAlgoTC::isSegmentGood(), egammaisolation::EgammaTrackSelector::operator()(), ChiSquared::probability(), ConversionTrackMerger::produce(), PFConversionProducer::produce(), CSCSegAlgoST::prune_bad_hits(), CSCSegAlgoHitPruning::pruneBadHits(), ConversionVertexFinder::run(), CSCSegAlgoTC::segmentSort(), TrimmedVertexFinder::theWorst(), and PrimaryVertexMonitor::vertexPlots().

{ return IncompleteGammaComplement::value( nrDOF / 2 , chiSquared / 2 ); }
float LnChiSquaredProbability ( double  chiSquared,
double  nrDOF 
)