CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/CommonTools/Statistics/src/ChiSquared.cc

Go to the documentation of this file.
00001 #include "CommonTools/Statistics/interface/ChiSquared.h"
00002 #include "CommonTools/Statistics/interface/ChiSquaredProbability.h"
00003 
00004 
00005 float ChiSquared::value() const
00006 {
00007   return theValue;
00008 }
00009 
00010 
00011 float ChiSquared::degreesOfFreedom() const
00012 {
00013   return theNDF;
00014 }
00015 
00016 
00017 float ChiSquared::probability() const
00018 {
00019   return ChiSquaredProbability(value(), degreesOfFreedom());
00020 }
00021 
00022 
00023 float ChiSquared::lnProbability() const
00024 {
00025   return LnChiSquaredProbability(value(), degreesOfFreedom());
00026 }