ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
ROOT::Math::GoFTest Class Reference

Definition at line 42 of file GoFTest.h.

Public Types

enum  EDistribution {
  kUndefined, kUserDefined, kGaussian, kLogNormal,
  kExponential
}
 
enum  EUserDistribution { kCDF, kPDF }
 
enum  ETestType { kAD, kAD2s, kKS, kKS2s }
 

Public Member Functions

 GoFTest (UInt_t sample1Size, const Double_t *sample1, UInt_t sample2Size, const Double_t *sample2)
 
 GoFTest (UInt_t sampleSize, const Double_t *sample, EDistribution dist=kUndefined)
 
template<class Dist >
 GoFTest (UInt_t sampleSize, const Double_t *sample, Dist &dist, EUserDistribution userDist=kPDF, Double_t xmin=1, Double_t xmax=0)
 
 GoFTest (UInt_t sampleSize, const Double_t *sample, const IGenFunction &dist, EUserDistribution userDist=kPDF, Double_t xmin=1, Double_t xmax=0)
 
template<class Dist >
void SetUserDistribution (Dist &dist, EUserDistribution userDist=kPDF, Double_t xmin=1, Double_t xmax=0)
 
void SetUserDistribution (const IGenFunction &dist, GoFTest::EUserDistribution userDist=kPDF, Double_t xmin=1, Double_t xmax=0)
 
template<class Dist >
void SetUserPDF (Dist &pdf, Double_t xmin=1, Double_t xmax=0)
 
void SetUserPDF (const IGenFunction &pdf, Double_t xmin=1, Double_t xmax=0)
 
template<class Dist >
void SetUserCDF (Dist &cdf, Double_t xmin=1, Double_t xmax=0)
 
void SetUserCDF (const IGenFunction &cdf, Double_t xmin=1, Double_t xmax=0)
 
void SetDistribution (EDistribution dist)
 
virtual ~GoFTest ()
 
void AndersonDarling2SamplesTest (Double_t &pvalue, Double_t &testStat) const
 
Double_t AndersonDarling2SamplesTest (const Char_t *option="p") const
 
void AndersonDarlingTest (Double_t &pvalue, Double_t &testStat) const
 
Double_t AndersonDarlingTest (const Char_t *option="p") const
 
void KolmogorovSmirnov2SamplesTest (Double_t &pvalue, Double_t &testStat) const
 
Double_t KolmogorovSmirnov2SamplesTest (const Char_t *option="p") const
 
void KolmogorovSmirnovTest (Double_t &pvalue, Double_t &testStat) const
 
Double_t KolmogorovSmirnovTest (const Char_t *option="p") const
 
void operator() (ETestType test, Double_t &pvalue, Double_t &testStat) const
 
Double_t operator() (ETestType test=kAD, const Char_t *option="p") const
 

Static Public Member Functions

static Double_t PValueADKSamples (UInt_t nsamples, Double_t A2)
 
static void AndersonDarling2SamplesTest (const ROOT::Fit::BinData &data1, const ROOT::Fit::BinData &data2, Double_t &pvalue, Double_t &testStat)
 

Private Member Functions

 GoFTest ()
 
 GoFTest (GoFTest &gof)
 
GoFTest operator= (GoFTest &gof)
 
void SetCDF ()
 
void SetDistributionFunction (const IGenFunction &cdf, Bool_t isPDF, Double_t xmin, Double_t xmax)
 
void Instantiate (const Double_t *sample, UInt_t sampleSize)
 
Double_t LogNormalCDF (Double_t x) const
 
Double_t GaussianCDF (Double_t x) const
 
Double_t ExponentialCDF (Double_t x) const
 
Double_t PValueAD1Sample (Double_t A2) const
 
void LogSample ()
 
void SetSamples (std::vector< const Double_t * > samples, const std::vector< UInt_t > samplesSizes)
 
void SetParameters ()
 

Static Private Member Functions

static Double_t GetSigmaN (const std::vector< UInt_t > &ns, UInt_t N)
 
static Double_t InterpolatePValues (int nsamples, Double_t A2)
 

Private Attributes

std::auto_ptr< IGenFunctionfCDF
 
EDistribution fDist
 
Double_t fMean
 
Double_t fSigma
 
std::vector< Double_tfCombinedSamples
 
std::vector< std::vector
< Double_t > > 
fSamples
 
Bool_t fTestSampleFromH0
 

#include <Math/GoFTest.h>

Member Enumeration Documentation

Enumerator
kUndefined 
kUserDefined 
kGaussian 
kLogNormal 
kExponential 

Definition at line 45 of file GoFTest.h.

Enumerator
kAD 
kAD2s 
kKS 
kKS2s 

Definition at line 58 of file GoFTest.h.

Enumerator
kCDF 
kPDF 

Definition at line 53 of file GoFTest.h.

Constructor & Destructor Documentation

ROOT::Math::GoFTest::GoFTest ( UInt_t  sample1Size,
const Double_t sample1,
UInt_t  sample2Size,
const Double_t sample2 
)

Definition at line 132 of file GoFTest.cxx.

ROOT::Math::GoFTest::GoFTest ( UInt_t  sampleSize,
const Double_t sample,
EDistribution  dist = kUndefined 
)

Definition at line 161 of file GoFTest.cxx.

template<class Dist >
ROOT::Math::GoFTest::GoFTest ( UInt_t  sampleSize,
const Double_t sample,
Dist &  dist,
EUserDistribution  userDist = kPDF,
Double_t  xmin = 1,
Double_t  xmax = 0 
)
inline

Definition at line 73 of file GoFTest.h.

ROOT::Math::GoFTest::GoFTest ( UInt_t  sampleSize,
const Double_t sample,
const IGenFunction dist,
EUserDistribution  userDist = kPDF,
Double_t  xmin = 1,
Double_t  xmax = 0 
)
inline

Definition at line 81 of file GoFTest.h.

ROOT::Math::GoFTest::~GoFTest ( )
virtual

Definition at line 180 of file GoFTest.cxx.

ROOT::Math::GoFTest::GoFTest ( )
private
ROOT::Math::GoFTest::GoFTest ( GoFTest gof)
private

Member Function Documentation

void ROOT::Math::GoFTest::AndersonDarling2SamplesTest ( Double_t pvalue,
Double_t testStat 
) const

Definition at line 646 of file GoFTest.cxx.

Referenced by AndersonDarling2SamplesTest(), TH1::AndersonDarlingTest(), and operator()().

Double_t ROOT::Math::GoFTest::AndersonDarling2SamplesTest ( const Char_t option = "p") const

Definition at line 852 of file GoFTest.cxx.

void ROOT::Math::GoFTest::AndersonDarling2SamplesTest ( const ROOT::Fit::BinData data1,
const ROOT::Fit::BinData data2,
Double_t pvalue,
Double_t testStat 
)
static

Definition at line 748 of file GoFTest.cxx.

void ROOT::Math::GoFTest::AndersonDarlingTest ( Double_t pvalue,
Double_t testStat 
) const

Definition at line 860 of file GoFTest.cxx.

Referenced by AndersonDarlingTest(), and operator()().

Double_t ROOT::Math::GoFTest::AndersonDarlingTest ( const Char_t option = "p") const

Definition at line 888 of file GoFTest.cxx.

Double_t ROOT::Math::GoFTest::ExponentialCDF ( Double_t  x) const
private

Definition at line 299 of file GoFTest.cxx.

Referenced by SetCDF().

Double_t ROOT::Math::GoFTest::GaussianCDF ( Double_t  x) const
private

Definition at line 295 of file GoFTest.cxx.

Referenced by SetCDF().

Double_t ROOT::Math::GoFTest::GetSigmaN ( const std::vector< UInt_t > &  ns,
UInt_t  N 
)
staticprivate

Definition at line 311 of file GoFTest.cxx.

Referenced by AndersonDarling2SamplesTest().

void ROOT::Math::GoFTest::Instantiate ( const Double_t sample,
UInt_t  sampleSize 
)
private

Definition at line 277 of file GoFTest.cxx.

Referenced by GoFTest().

static Double_t ROOT::Math::GoFTest::InterpolatePValues ( int  nsamples,
Double_t  A2 
)
staticprivate
void ROOT::Math::GoFTest::KolmogorovSmirnov2SamplesTest ( Double_t pvalue,
Double_t testStat 
) const

Definition at line 894 of file GoFTest.cxx.

Referenced by KolmogorovSmirnov2SamplesTest(), and operator()().

Double_t ROOT::Math::GoFTest::KolmogorovSmirnov2SamplesTest ( const Char_t option = "p") const

Definition at line 911 of file GoFTest.cxx.

void ROOT::Math::GoFTest::KolmogorovSmirnovTest ( Double_t pvalue,
Double_t testStat 
) const

Definition at line 919 of file GoFTest.cxx.

Referenced by KolmogorovSmirnovTest(), and operator()().

Double_t ROOT::Math::GoFTest::KolmogorovSmirnovTest ( const Char_t option = "p") const

Definition at line 943 of file GoFTest.cxx.

Double_t ROOT::Math::GoFTest::LogNormalCDF ( Double_t  x) const
private
void ROOT::Math::GoFTest::LogSample ( )
private

Definition at line 303 of file GoFTest.cxx.

Referenced by SetCDF().

void ROOT::Math::GoFTest::operator() ( ETestType  test,
Double_t pvalue,
Double_t testStat 
) const

Definition at line 210 of file GoFTest.cxx.

Double_t ROOT::Math::GoFTest::operator() ( ETestType  test = kAD,
const Char_t option = "p" 
) const

Definition at line 227 of file GoFTest.cxx.

GoFTest ROOT::Math::GoFTest::operator= ( GoFTest gof)
private
Double_t ROOT::Math::GoFTest::PValueAD1Sample ( Double_t  A2) const
private

Definition at line 483 of file GoFTest.cxx.

Referenced by AndersonDarlingTest().

Double_t ROOT::Math::GoFTest::PValueADKSamples ( UInt_t  nsamples,
Double_t  A2 
)
static

Definition at line 353 of file GoFTest.cxx.

Referenced by AndersonDarling2SamplesTest().

void ROOT::Math::GoFTest::SetCDF ( )
private

Definition at line 246 of file GoFTest.cxx.

Referenced by GoFTest(), and SetDistribution().

void ROOT::Math::GoFTest::SetDistribution ( EDistribution  dist)

Definition at line 123 of file GoFTest.cxx.

void ROOT::Math::GoFTest::SetDistributionFunction ( const IGenFunction cdf,
Bool_t  isPDF,
Double_t  xmin,
Double_t  xmax 
)
private

Definition at line 265 of file GoFTest.cxx.

Referenced by SetUserDistribution().

void ROOT::Math::GoFTest::SetParameters ( )
private

Definition at line 205 of file GoFTest.cxx.

Referenced by GoFTest(), and LogSample().

void ROOT::Math::GoFTest::SetSamples ( std::vector< const Double_t * >  samples,
const std::vector< UInt_t samplesSizes 
)
private

Definition at line 182 of file GoFTest.cxx.

Referenced by GoFTest(), and Instantiate().

template<class Dist >
void ROOT::Math::GoFTest::SetUserCDF ( Dist &  cdf,
Double_t  xmin = 1,
Double_t  xmax = 0 
)
inline

Definition at line 115 of file GoFTest.h.

void ROOT::Math::GoFTest::SetUserCDF ( const IGenFunction cdf,
Double_t  xmin = 1,
Double_t  xmax = 0 
)
inline

Definition at line 120 of file GoFTest.h.

template<class Dist >
void ROOT::Math::GoFTest::SetUserDistribution ( Dist &  dist,
EUserDistribution  userDist = kPDF,
Double_t  xmin = 1,
Double_t  xmax = 0 
)
inline

Definition at line 90 of file GoFTest.h.

Referenced by GoFTest(), SetUserCDF(), and SetUserPDF().

void ROOT::Math::GoFTest::SetUserDistribution ( const IGenFunction dist,
GoFTest::EUserDistribution  userDist = kPDF,
Double_t  xmin = 1,
Double_t  xmax = 0 
)
inline

Definition at line 96 of file GoFTest.h.

template<class Dist >
void ROOT::Math::GoFTest::SetUserPDF ( Dist &  pdf,
Double_t  xmin = 1,
Double_t  xmax = 0 
)
inline

Definition at line 102 of file GoFTest.h.

void ROOT::Math::GoFTest::SetUserPDF ( const IGenFunction pdf,
Double_t  xmin = 1,
Double_t  xmax = 0 
)
inline

Definition at line 107 of file GoFTest.h.

Member Data Documentation

std::auto_ptr<IGenFunction> ROOT::Math::GoFTest::fCDF
private

Definition at line 185 of file GoFTest.h.

Referenced by Instantiate(), SetCDF(), and SetDistributionFunction().

std::vector<Double_t> ROOT::Math::GoFTest::fCombinedSamples
private

Definition at line 193 of file GoFTest.h.

Referenced by AndersonDarling2SamplesTest(), and SetSamples().

EDistribution ROOT::Math::GoFTest::fDist
private
Double_t ROOT::Math::GoFTest::fMean
private

Definition at line 190 of file GoFTest.h.

Referenced by ExponentialCDF(), GaussianCDF(), Instantiate(), and SetParameters().

std::vector<std::vector<Double_t> > ROOT::Math::GoFTest::fSamples
private
Double_t ROOT::Math::GoFTest::fSigma
private

Definition at line 191 of file GoFTest.h.

Referenced by GaussianCDF(), Instantiate(), and SetParameters().

Bool_t ROOT::Math::GoFTest::fTestSampleFromH0
private
Collaboration diagram for ROOT::Math::GoFTest:
[legend]

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