testDistSampler.cxx File Reference

#include "Math/Factory.h"
#include "Math/DistSampler.h"
#include "TF1.h"
#include "TH1.h"
#include "TStopwatch.h"
#include "TRandom.h"
#include "TError.h"
#include "TCanvas.h"

Go to the source code of this file.

Functions

int testCont1D (int n)
int testDisc1D (int n)
int testDistSampler (int n=10000)
int main ()


Function Documentation

int main ( void   ) 

Definition at line 134 of file testDistSampler.cxx.

References testDistSampler().

int testCont1D ( int  n  ) 

Definition at line 18 of file testDistSampler.cxx.

References c, TH1::Chi2Test(), double, TH1::Draw(), E, TH2::Fill(), TH1::Fill(), TRandom::Gaus(), gErrorIgnoreLevel, gRandom, h1, i, ROOT::Math::DistSampler::Init(), kBlue, ROOT::Math::DistSampler::Sample1D(), ROOT::Math::DistSampler::SetFunction(), TAttLine::SetLineColor(), and w.

Referenced by testDistSampler().

int testDisc1D ( int  n  ) 

Definition at line 71 of file testDistSampler.cxx.

References c, TH1::Chi2Test(), double, TH1::Draw(), E, TH2::Fill(), TH1::Fill(), gErrorIgnoreLevel, gRandom, h1, i, ROOT::Math::DistSampler::Init(), kBlue, TRandom::Poisson(), ROOT::Math::DistSampler::Sample1D(), ROOT::Math::DistSampler::SetArea(), ROOT::Math::DistSampler::SetFunction(), TAttLine::SetLineColor(), ROOT::Math::DistSampler::SetMode(), and w.

Referenced by testDistSampler().

int testDistSampler ( int  n = 10000  ) 

Definition at line 128 of file testDistSampler.cxx.

References n, testCont1D(), and testDisc1D().

Referenced by main().


Generated on Tue Jul 5 16:07:12 2011 for ROOT_528-00b_version by  doxygen 1.5.1