class TMVA::PDF: public TObject


PDF wrapper for histograms; uses user-defined spline interpolation


Function Members (Methods)

public:
virtual~PDF()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
Double_tGetIntegral(Double_t xmin, Double_t xmax)
virtual const char*GetName() const
Int_tGetNBins() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
TH1*GetOriginalHist() const
TH1*GetPDFHist() const
UInt_tGetReadingVersion() const
TH1*GetSmoothedHist() const
TSpline*GetSpline() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
Double_tGetVal(Double_t x) const
Double_tGetXmax() const
Double_tGetXmin() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
TObject&TObject::operator=(const TObject& rhs)
virtual voidTObject::Paint(Option_t* option = "")
TMVA::PDFPDF()
TMVA::PDFPDF(const TH1* theHist, TMVA::PDF::EInterpolateMethod method = kSpline2, Int_t nsmooth = 0, Bool_t checkHist = kFALSE)
TMVA::PDFPDF(const TH1* theHist, TMVA::KDEKernel::EKernelType ktype, TMVA::KDEKernel::EKernelIter kiter, TMVA::KDEKernel::EKernelBorder kborder, Float_t FineFactor)
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetReadingVersion(UInt_t rv)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
voidValidatePDF(TH1* original = 0) const
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
private:
voidBuildPDF(Bool_t checkHist = kFALSE)
voidCheckHist() const
voidFillKDEToHist()
voidFillSplineToHist()
Double_tGetIntegral() const
Double_tGetPdfHistBinWidth() const
static Double_tIGetVal(Double_t*, Double_t*)
static TMVA::PDF*ThisPDF()
Bool_tUseHistogram() const

Data Members

public:
enum EInterpolateMethod { kSpline0
kSpline1
kSpline2
kSpline3
kSpline5
kKDE
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
private:
Float_tfFineFactorfine tuning factor for Adaptive KDE
TGraph*fGraph! needed to create PDF from histogram
TH1*fHistcopy of input histogram
TH1*fHistOriginalthe input histogram
TF1*fIGetValintegration interface
TMVA::PDF::EInterpolateMethodfInterpolMethodinterpolation method
TMVA::KDEKernel::EKernelBorderfKDEborderThe method to take care about "border" effects (string)
TMVA::KDEKernel::EKernelIterfKDEiterNumber of iterations (adaptive or not)
TMVA::KDEKernel::EKernelTypefKDEtypeKernel type to use for KDE
TMVA::MsgLoggerfLogger! message logger
Int_tfNsmoothnumber of times the histogram is smoothed
TH1*fPDFHistthe high-binned histogram corresponding to the PDF
UInt_tfReadingVersionthe TMVA version of the weight file
TSpline*fSpline! the used spline type
Bool_tfUseHistogramspline0 uses histogram as reference
static const Double_tfgEpsilonminimum PDF return
static const Bool_tfgManualIntegrationmanual integration (sum over bins) or DGAUSS
static const Int_tfgNbin_PdfHistnumber of bins in high-binned reference histogram
static TMVA::PDF*fgThisPDFthis PDF pointer

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

PDF()
 default constructor needed for ROOT I/O
PDF(const TH1* theHist, TMVA::PDF::EInterpolateMethod method = kSpline2, Int_t nsmooth = 0, Bool_t checkHist = kFALSE)
 constructor of spline based PDF:
 - default Spline method is: Spline2 (quadratic)
 - default smoothing is none
PDF(const TH1* theHist, TMVA::KDEKernel::EKernelType ktype, TMVA::KDEKernel::EKernelIter kiter, TMVA::KDEKernel::EKernelBorder kborder, Float_t FineFactor)
 constructor of kernel based PDF:
 - default kernel type is Gaussian
 - default number of iterations is 1 (i.e. nonadaptive KDE)
 sanity check
~PDF()
 destructor
void BuildPDF(Bool_t checkHist = kFALSE)
 build the PDF from the original histograms
void FillKDEToHist()
 creates high-binned reference histogram to be used instead of the
 PDF for speed reasons
void FillSplineToHist()
 creates high-binned reference histogram to be used instead of the
 PDF for speed reasons
void CheckHist()
 sanity check: compare PDF with original histogram
void ValidatePDF(TH1* original = 0) const
 comparison of original histogram with reference PDF
Double_t GetIntegral()
 computes normalisation
Double_t IGetVal(Double_t* , Double_t* )
 static external auxiliary function (integrand)
Double_t GetIntegral(Double_t xmin, Double_t xmax)
 computes PDF integral within given ranges
Double_t GetVal(Double_t x) const
 returns value PDF(x)
TH1* GetPDFHist()
 histogram underlying the PDF
{ return fPDFHist; }
TH1* GetOriginalHist()
{ return fHistOriginal; }
TH1* GetSmoothedHist()
{ return fHist; }
TSpline* GetSpline()
 accessors
{ return fSpline; }
Int_t GetNBins()
{ return fHist->GetNbinsX(); }
Double_t GetXmin()
{ return fHist->GetXaxis()->GetXmin(); }
Double_t GetXmax()
{ return fHist->GetXaxis()->GetXmax(); }
const char* GetName()
 modified name (remove TMVA::)
{ return "PDF"; }
void SetReadingVersion(UInt_t rv)
 TMVA version control (for weight files)
{ fReadingVersion = rv; }
UInt_t GetReadingVersion()
{ return fReadingVersion; }
Double_t GetPdfHistBinWidth()
Bool_t UseHistogram()
 do we use the original histogram as reference ?
{ return fUseHistogram; }
PDF* ThisPDF( void )
{ return fgThisPDF; }

Author: Asen Christov, Andreas Hoecker, Joerg Stelzer, Helge Voss, Kai Voss
Last change: root/tmva $Id: PDF.h 23334 2008-04-19 18:38:57Z brun $
Last generated: 2008-06-25 08:48
Copyright (c) 2005: *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.