Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TMVA::PDF Class Reference

PDF wrapper for histograms; uses user-defined spline interpolation.

Definition at line 63 of file PDF.h.

Public Types

enum  EInterpolateMethod {
  kSpline0 , kSpline1 , kSpline2 , kSpline3 ,
  kSpline5 , kKDE
}
 
- Public Types inherited from TObject
enum  {
  kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 ,
  kBitMask = 0x00ffffff
}
 
enum  { kSingleKey = (1ULL << ( 0 )) , kOverwrite = (1ULL << ( 1 )) , kWriteDelete = (1ULL << ( 2 )) }
 
enum  EDeprecatedStatusBits { kObjInCanvas = (1ULL << ( 3 )) }
 
enum  EStatusBits {
  kCanDelete = (1ULL << ( 0 )) , kMustCleanup = (1ULL << ( 3 )) , kIsReferenced = (1ULL << ( 4 )) , kHasUUID = (1ULL << ( 5 )) ,
  kCannotPick = (1ULL << ( 6 )) , kNoContextMenu = (1ULL << ( 8 )) , kInvalidObject = (1ULL << ( 13 ))
}
 

Public Member Functions

 PDF (const TString &name, Bool_t norm=kTRUE)
 default constructor needed for ROOT I/O
 
 PDF (const TString &name, const TH1 *theHist, EInterpolateMethod method=kSpline2, Int_t minnsmooth=0, Int_t maxnsmooth=0, Bool_t checkHist=kFALSE, Bool_t norm=kTRUE)
 constructor of spline based PDF:
 
 PDF (const TString &name, const TH1 *theHist, KDEKernel::EKernelType ktype, KDEKernel::EKernelIter kiter, KDEKernel::EKernelBorder kborder, Float_t FineFactor, Bool_t norm=kTRUE)
 constructor of kernel based PDF:
 
 PDF (const TString &name, const TString &options, const TString &suffix="", PDF *defaultPDF=nullptr, Bool_t norm=kTRUE)
 
virtual ~PDF ()
 
void AddXMLTo (void *parent)
 XML file writing.
 
void BuildPDF (const TH1 *theHist)
 
void DeclareOptions ()
 define the options (their key words) that can be set in the option string
 
TGraphGetGraph () const
 
Int_t GetHistNBins (Int_t evtNum=0)
 
Double_t GetIntegral (Double_t xmin, Double_t xmax)
 computes PDF integral within given ranges
 
TMVA::PDF::EInterpolateMethod GetInterpolMethod ()
 
const char * GetName () const
 Returns name of object.
 
Int_t GetNBins () const
 
TH1GetNSmoothHist () const
 
TH1GetOriginalHist () const
 
TH1GetPDFHist () const
 
UInt_t GetReadingVersion () const
 
TH1GetSmoothedHist () const
 
TSplineGetSpline () const
 
Double_t GetVal (Double_t x) const
 returns value PDF(x)
 
Double_t GetValInverse (Double_t y, Bool_t isMonotonouslyIncreasingFunction=kFALSE) const
 returns value \( PDF^{-1}(y) \)
 
Double_t GetXmax () const
 
Double_t GetXmin () const
 
virtual TClassIsA () const
 
void ProcessOptions ()
 
void ReadXML (void *pdfnode)
 XML file reading.
 
void SetReadingVersion (UInt_t rv)
 
virtual void Streamer (TBuffer &)
 Stream an object of class TObject.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
void ValidatePDF (TH1 *original=nullptr) const
 comparison of original histogram with reference PDF
 
- Public Member Functions inherited from TMVA::Configurable
 Configurable (const TString &theOption="")
 constructor
 
virtual ~Configurable ()
 default destructor
 
void AddOptionsXMLTo (void *parent) const
 write options to XML file
 
template<class T >
void AddPreDefVal (const T &)
 
template<class T >
void AddPreDefVal (const TString &optname, const T &)
 
void CheckForUnusedOptions () const
 checks for unused options in option string
 
template<class T >
TMVA::OptionBaseDeclareOptionRef (T &ref, const TString &name, const TString &desc)
 
template<class T >
OptionBaseDeclareOptionRef (T &ref, const TString &name, const TString &desc="")
 
template<class T >
TMVA::OptionBaseDeclareOptionRef (T *&ref, Int_t size, const TString &name, const TString &desc)
 
template<class T >
OptionBaseDeclareOptionRef (T *&ref, Int_t size, const TString &name, const TString &desc="")
 
const char * GetConfigDescription () const
 
const char * GetConfigName () const
 
const TStringGetOptions () const
 
MsgLoggerLog () const
 
virtual void ParseOptions ()
 options parser
 
void PrintOptions () const
 prints out the options set in the options string and the defaults
 
void ReadOptionsFromStream (std::istream &istr)
 read option back from the weight file
 
void ReadOptionsFromXML (void *node)
 
void SetConfigDescription (const char *d)
 
void SetConfigName (const char *n)
 
void SetMsgType (EMsgType t)
 
void SetOptions (const TString &s)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
void WriteOptionsToStream (std::ostream &o, const TString &prefix) const
 write options to output stream (e.g. in writing the MVA weight files
 
- Public Member Functions inherited from TNamed
 TNamed ()
 
 TNamed (const char *name, const char *title)
 
 TNamed (const TNamed &named)
 TNamed copy ctor.
 
 TNamed (const TString &name, const TString &title)
 
virtual ~TNamed ()
 TNamed destructor.
 
void Clear (Option_t *option="") override
 Set name and title to empty strings ("").
 
TObjectClone (const char *newname="") const override
 Make a clone of an object using the Streamer facility.
 
Int_t Compare (const TObject *obj) const override
 Compare two TNamed objects.
 
void Copy (TObject &named) const override
 Copy this to obj.
 
virtual void FillBuffer (char *&buffer)
 Encode TNamed into output buffer.
 
const char * GetName () const override
 Returns name of object.
 
const char * GetTitle () const override
 Returns title of object.
 
ULong_t Hash () const override
 Return hash value for this object.
 
TClassIsA () const override
 
Bool_t IsSortable () const override
 
void ls (Option_t *option="") const override
 List TNamed name and title.
 
TNamedoperator= (const TNamed &rhs)
 TNamed assignment operator.
 
void Print (Option_t *option="") const override
 Print TNamed name and title.
 
virtual void SetName (const char *name)
 Set the name of the TNamed.
 
virtual void SetNameTitle (const char *name, const char *title)
 Set all the TNamed parameters (name and title).
 
virtual void SetTitle (const char *title="")
 Set the title of the TNamed.
 
virtual Int_t Sizeof () const
 Return size of the TNamed part of the TObject.
 
void Streamer (TBuffer &) override
 Stream an object of class TObject.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TObject
 TObject ()
 TObject constructor.
 
 TObject (const TObject &object)
 TObject copy ctor.
 
virtual ~TObject ()
 TObject destructor.
 
void AbstractMethod (const char *method) const
 Use this method to implement an "abstract" method that you don't want to leave purely abstract.
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad.
 
virtual void Browse (TBrowser *b)
 Browse object. May be overridden for another default action.
 
ULong_t CheckedHash ()
 Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object.
 
virtual const char * ClassName () const
 Returns name of class to which the object belongs.
 
virtual void Delete (Option_t *option="")
 Delete this object.
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 Computes distance from point (px,py) to the object.
 
virtual void Draw (Option_t *option="")
 Default Draw method for all objects.
 
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs.
 
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current selected pad with: gROOT->SetSelectedPad(c1).
 
virtual void Dump () const
 Dump contents of object on stdout.
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message.
 
virtual void Execute (const char *method, const char *params, Int_t *error=nullptr)
 Execute method on this object with the given parameter string, e.g.
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr)
 Execute method on this object with parameters stored in the TObjArray.
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 Execute action corresponding to an event at (px,py).
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message.
 
virtual TObjectFindObject (const char *name) const
 Must be redefined in derived classes.
 
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes.
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object.
 
virtual const char * GetIconName () const
 Returns mime type name of object.
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py).
 
virtual Option_tGetOption () const
 
virtual UInt_t GetUniqueID () const
 Return the unique object id.
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out.
 
Bool_t HasInconsistentHash () const
 Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e.
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message.
 
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname".
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl.
 
virtual void Inspect () const
 Dump contents of this object in a graphics canvas.
 
void InvertBit (UInt_t f)
 
Bool_t IsDestructed () const
 IsDestructed.
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory).
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
void MayNotUse (const char *method) const
 Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary).
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification.
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete.
 
void operator delete (void *ptr)
 Operator delete.
 
void operator delete[] (void *ptr)
 Operator delete [].
 
void * operator new (size_t sz)
 
void * operator new (size_t sz, void *vp)
 
void * operator new[] (size_t sz)
 
void * operator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator.
 
virtual void Paint (Option_t *option="")
 This method must be overridden if a class wants to paint itself.
 
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list.
 
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory.
 
virtual void RecursiveRemove (TObject *obj)
 Recursively remove this object from a list.
 
void ResetBit (UInt_t f)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename.
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 Save a primitive as a C++ statement(s) on output stream "out".
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f.
 
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object.
 
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message.
 
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
virtual void UseCurrentStyle ()
 Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked.
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message.
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory.
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory.
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TMVA::Configurable
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TNamed
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TObject
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static Longptr_t GetDtorOnly ()
 Return destructor only flag.
 
static Bool_t GetObjectStat ()
 Get status of object stat flag.
 
static void SetDtorOnly (void *obj)
 Set destructor only flag.
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable.
 

Private Member Functions

void BuildKDEPDF ()
 creates high-binned reference histogram to be used instead of the PDF for speed reasons
 
void BuildSplinePDF ()
 build the PDF from the original histograms
 
void CheckHist () const
 sanity check: compare PDF with original histogram
 
void FillHistToGraph ()
 Simple conversion.
 
void FillSplineToHist ()
 creates high-binned reference histogram to be used instead of the PDF for speed reasons
 
void FindBinInverse (const TH1 *histogram, Int_t &lowerBin, Int_t &higherBin, Double_t &lowerBinValue, Double_t &higherBinValue, Double_t y, Bool_t isMonotonouslyIncreasingFunction=kFALSE) const
 find bin from value on ordinate
 
Double_t GetIntegral () const
 computes normalisation
 
Double_t GetPdfHistBinWidth () const
 
MsgLoggerLog () const
 
void SmoothHistogram ()
 
Bool_t UseHistogram () const
 

Static Private Member Functions

static PDF *& GetThisPdfThreadLocal ()
 
static Double_t IGetVal (Double_t *, Double_t *)
 static external auxiliary function (integrand)
 
static PDFThisPDF (void)
 

Private Attributes

TString fBorderMethodString
 
Bool_t fCheckHist
 check of source histogram
 
Float_t fFineFactor
 fine tuning factor for Adaptive KDE
 
TGraphfGraph
 ! needed to create PDF from histogram
 
TH1fHist
 copy of input histogram
 
Int_t fHistAvgEvtPerBin
 avg event per source hist bin
 
Int_t fHistDefinedNBins
 source hist bin num set by user
 
TH1fHistOriginal
 the input histogram
 
TF1fIGetVal
 integration interface
 
TString fInterpolateString
 
TMVA::PDF::EInterpolateMethod fInterpolMethod
 interpolation method
 
KDEKernel::EKernelBorder fKDEborder
 The method to take care about "border" effects (string)
 
KDEKernel::EKernelIter fKDEiter
 Number of iterations (adaptive or not)
 
TString fKDEiterString
 
KDEKernel::EKernelType fKDEtype
 Kernel type to use for KDE.
 
TString fKDEtypeString
 strings used to read definitions
 
MsgLoggerfLogger
 ! message logger
 
Int_t fMaxNsmooth
 Max number of smoothing iterations.
 
Int_t fMinNsmooth
 Min number of smoothing iterations.
 
Bool_t fNormalize
 normalize histogram (false for cumulative distribution used in GaussTranform)
 
Int_t fNsmooth
 Min number of smoothing iterations.
 
TH1fNSmoothHist
 number of smooth for each bin
 
TH1fPDFHist
 the high-binned histogram corresponding to the PDF
 
TString fPDFName
 for output
 
UInt_t fReadingVersion
 the TMVA version of the weight file
 
TSplinefSpline
 ! the used spline type
 
TString fSuffix
 ! the suffix for options
 
Bool_t fUseHistogram
 

Static Private Attributes

static const Double_t fgEpsilon = 1.0e-12
 minimum PDF return
 
static const Bool_t fgManualIntegration = kTRUE
 manual integration (sum over bins) or DGAUSS
 
static const Int_t fgNbin_PdfHist = 10000
 number of bins in high-binned reference histogram
 

Friends

std::ostream & operator<< (std::ostream &os, const PDF &tree)
 
std::istream & operator>> (std::istream &istr, PDF &tree)
 

Additional Inherited Members

- Protected Types inherited from TObject
enum  { kOnlyPrepStep = (1ULL << ( 3 )) }
 
- Protected Member Functions inherited from TMVA::Configurable
void EnableLooseOptions (Bool_t b=kTRUE)
 
const TStringGetReferenceFile () const
 
Bool_t LooseOptionCheckingEnabled () const
 
void ResetSetFlag ()
 resets the IsSet flag for all declare options to be called before options are read from stream
 
void WriteOptionsReferenceToFile ()
 write complete options to output stream
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected).
 
void MakeZombie ()
 
- Protected Attributes inherited from TMVA::Configurable
MsgLoggerfLogger
 ! message logger
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 

#include <TMVA/PDF.h>

Inheritance diagram for TMVA::PDF:
[legend]

Member Enumeration Documentation

◆ EInterpolateMethod

Enumerator
kSpline0 
kSpline1 
kSpline2 
kSpline3 
kSpline5 
kKDE 

Definition at line 70 of file PDF.h.

Constructor & Destructor Documentation

◆ PDF() [1/4]

TMVA::PDF::PDF ( const TString name,
Bool_t  norm = kTRUE 
)
explicit

default constructor needed for ROOT I/O

Definition at line 69 of file PDF.cxx.

◆ PDF() [2/4]

TMVA::PDF::PDF ( const TString name,
const TH1 theHist,
PDF::EInterpolateMethod  method = kSpline2,
Int_t  minnsmooth = 0,
Int_t  maxnsmooth = 0,
Bool_t  checkHist = kFALSE,
Bool_t  norm = kTRUE 
)
explicit

constructor of spline based PDF:

Definition at line 107 of file PDF.cxx.

◆ PDF() [3/4]

TMVA::PDF::PDF ( const TString name,
const TH1 theHist,
KDEKernel::EKernelType  ktype,
KDEKernel::EKernelIter  kiter,
KDEKernel::EKernelBorder  kborder,
Float_t  FineFactor,
Bool_t  norm = kTRUE 
)
explicit

constructor of kernel based PDF:

Definition at line 150 of file PDF.cxx.

◆ PDF() [4/4]

TMVA::PDF::PDF ( const TString name,
const TString options,
const TString suffix = "",
PDF defaultPDF = nullptr,
Bool_t  norm = kTRUE 
)
explicit

Definition at line 193 of file PDF.cxx.

◆ ~PDF()

TMVA::PDF::~PDF ( )
virtual

Definition at line 246 of file PDF.cxx.

Member Function Documentation

◆ AddXMLTo()

void TMVA::PDF::AddXMLTo ( void *  parent)

XML file writing.

Definition at line 919 of file PDF.cxx.

◆ BuildKDEPDF()

void TMVA::PDF::BuildKDEPDF ( )
private

creates high-binned reference histogram to be used instead of the PDF for speed reasons

Definition at line 387 of file PDF.cxx.

◆ BuildPDF()

void TMVA::PDF::BuildPDF ( const TH1 theHist)

Definition at line 260 of file PDF.cxx.

◆ BuildSplinePDF()

void TMVA::PDF::BuildSplinePDF ( )
private

build the PDF from the original histograms

Definition at line 321 of file PDF.cxx.

◆ CheckHist()

void TMVA::PDF::CheckHist ( ) const
private

sanity check: compare PDF with original histogram

Definition at line 553 of file PDF.cxx.

◆ Class()

static TClass * TMVA::PDF::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TMVA::PDF::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TMVA::PDF::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 211 of file PDF.h.

◆ DeclareOptions()

void TMVA::PDF::DeclareOptions ( )

define the options (their key words) that can be set in the option string

know options:

PDFInterpol[ivar] <string> Spline0, Spline1, Spline2 <default>, Spline3, Spline5, KDE used to interpolate reference histograms if no variable index is given, it is valid for ALL the variables

  • NSmooth <int> how often the input histos are smoothed
  • MinNSmooth <int> min number of smoothing iterations, for bins with most data
  • MaxNSmooth <int> max number of smoothing iterations, for bins with least data
  • NAvEvtPerBin <int> minimum average number of events per PDF bin
  • TransformOutput <bool> transform (often strongly peaked) likelihood output through sigmoid inversion
  • fKDEtype <KernelType> type of the Kernel to use (1 is Gaussian)
  • fKDEiter <KerneIter> number of iterations (1 --> "static KDE", 2 --> "adaptive KDE")
  • fBorderMethod <KernelBorder> the method to take care about "border" effects (1=no treatment , 2=kernel renormalization, 3=sample mirroring)

Definition at line 820 of file PDF.cxx.

◆ DeclFileName()

static const char * TMVA::PDF::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 211 of file PDF.h.

◆ FillHistToGraph()

void TMVA::PDF::FillHistToGraph ( )
private

Simple conversion.

Definition at line 514 of file PDF.cxx.

◆ FillSplineToHist()

void TMVA::PDF::FillSplineToHist ( )
private

creates high-binned reference histogram to be used instead of the PDF for speed reasons

Definition at line 523 of file PDF.cxx.

◆ FindBinInverse()

void TMVA::PDF::FindBinInverse ( const TH1 histogram,
Int_t lowerBin,
Int_t higherBin,
Double_t lowerBinValue,
Double_t higherBinValue,
Double_t  y,
Bool_t  isMonotonouslyIncreasingFunction = kFALSE 
) const
private

find bin from value on ordinate

Definition at line 761 of file PDF.cxx.

◆ GetGraph()

TGraph * TMVA::PDF::GetGraph ( ) const
inline

Definition at line 93 of file PDF.h.

◆ GetHistNBins()

Int_t TMVA::PDF::GetHistNBins ( Int_t  evtNum = 0)

Definition at line 304 of file PDF.cxx.

◆ GetIntegral() [1/2]

Double_t TMVA::PDF::GetIntegral ( ) const
private

computes normalisation

Definition at line 635 of file PDF.cxx.

◆ GetIntegral() [2/2]

Double_t TMVA::PDF::GetIntegral ( Double_t  xmin,
Double_t  xmax 
)

computes PDF integral within given ranges

Definition at line 654 of file PDF.cxx.

◆ GetInterpolMethod()

TMVA::PDF::EInterpolateMethod TMVA::PDF::GetInterpolMethod ( )
inline

Definition at line 113 of file PDF.h.

◆ GetName()

const char * TMVA::PDF::GetName ( ) const
inlinevirtual

Returns name of object.

This default method returns the class name. Classes that give objects a name should override this method.

Reimplemented from TObject.

Definition at line 116 of file PDF.h.

◆ GetNBins()

Int_t TMVA::PDF::GetNBins ( ) const
inline

Definition at line 103 of file PDF.h.

◆ GetNSmoothHist()

TH1 * TMVA::PDF::GetNSmoothHist ( ) const
inline

Definition at line 96 of file PDF.h.

◆ GetOriginalHist()

TH1 * TMVA::PDF::GetOriginalHist ( ) const
inline

Definition at line 94 of file PDF.h.

◆ GetPDFHist()

TH1 * TMVA::PDF::GetPDFHist ( ) const
inline

Definition at line 92 of file PDF.h.

◆ GetPdfHistBinWidth()

Double_t TMVA::PDF::GetPdfHistBinWidth ( ) const
inlineprivate

Definition at line 138 of file PDF.h.

◆ GetReadingVersion()

UInt_t TMVA::PDF::GetReadingVersion ( ) const
inline

Definition at line 120 of file PDF.h.

◆ GetSmoothedHist()

TH1 * TMVA::PDF::GetSmoothedHist ( ) const
inline

Definition at line 95 of file PDF.h.

◆ GetSpline()

TSpline * TMVA::PDF::GetSpline ( ) const
inline

Definition at line 102 of file PDF.h.

◆ GetThisPdfThreadLocal()

static PDF *& TMVA::PDF::GetThisPdfThreadLocal ( )
inlinestaticprivate

Definition at line 205 of file PDF.h.

◆ GetVal()

Double_t TMVA::PDF::GetVal ( Double_t  x) const

returns value PDF(x)

Definition at line 701 of file PDF.cxx.

◆ GetValInverse()

Double_t TMVA::PDF::GetValInverse ( Double_t  y,
Bool_t  isMonotonouslyIncreasingFunction = kFALSE 
) const

returns value \( PDF^{-1}(y) \)

Definition at line 734 of file PDF.cxx.

◆ GetXmax()

Double_t TMVA::PDF::GetXmax ( ) const
inline

Definition at line 105 of file PDF.h.

◆ GetXmin()

Double_t TMVA::PDF::GetXmin ( ) const
inline

Definition at line 104 of file PDF.h.

◆ IGetVal()

Double_t TMVA::PDF::IGetVal ( Double_t x,
Double_t  
)
staticprivate

static external auxiliary function (integrand)

Definition at line 646 of file PDF.cxx.

◆ IsA()

virtual TClass * TMVA::PDF::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Reimplemented from TMVA::Configurable.

Definition at line 211 of file PDF.h.

◆ Log()

MsgLogger & TMVA::PDF::Log ( ) const
inlineprivate

Definition at line 200 of file PDF.h.

◆ ProcessOptions()

void TMVA::PDF::ProcessOptions ( )

Definition at line 870 of file PDF.cxx.

◆ ReadXML()

void TMVA::PDF::ReadXML ( void *  pdfnode)

XML file reading.

Definition at line 961 of file PDF.cxx.

◆ SetReadingVersion()

void TMVA::PDF::SetReadingVersion ( UInt_t  rv)
inline

Definition at line 119 of file PDF.h.

◆ SmoothHistogram()

void TMVA::PDF::SmoothHistogram ( )
private

Definition at line 455 of file PDF.cxx.

◆ Streamer()

virtual void TMVA::PDF::Streamer ( TBuffer R__b)
virtual

Stream an object of class TObject.

Reimplemented from TMVA::Configurable.

◆ StreamerNVirtual()

void TMVA::PDF::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 211 of file PDF.h.

◆ ThisPDF()

TMVA::PDF * TMVA::PDF::ThisPDF ( void  )
staticprivate

Definition at line 1136 of file PDF.cxx.

◆ UseHistogram()

Bool_t TMVA::PDF::UseHistogram ( ) const
inlineprivate

Definition at line 144 of file PDF.h.

◆ ValidatePDF()

void TMVA::PDF::ValidatePDF ( TH1 original = nullptr) const

comparison of original histogram with reference PDF

Definition at line 578 of file PDF.cxx.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const PDF tree 
)
friend

◆ operator>>

std::istream & operator>> ( std::istream &  istr,
PDF tree 
)
friend

Member Data Documentation

◆ fBorderMethodString

TString TMVA::PDF::fBorderMethodString
private

Definition at line 185 of file PDF.h.

◆ fCheckHist

Bool_t TMVA::PDF::fCheckHist
private

check of source histogram

Definition at line 195 of file PDF.h.

◆ fFineFactor

Float_t TMVA::PDF::fFineFactor
private

fine tuning factor for Adaptive KDE

Definition at line 191 of file PDF.h.

◆ fgEpsilon

const Double_t TMVA::PDF::fgEpsilon = 1.0e-12
staticprivate

minimum PDF return

Definition at line 163 of file PDF.h.

◆ fgManualIntegration

const Bool_t TMVA::PDF::fgManualIntegration = kTRUE
staticprivate

manual integration (sum over bins) or DGAUSS

Definition at line 162 of file PDF.h.

◆ fgNbin_PdfHist

const Int_t TMVA::PDF::fgNbin_PdfHist = 10000
staticprivate

number of bins in high-binned reference histogram

Definition at line 161 of file PDF.h.

◆ fGraph

TGraph* TMVA::PDF::fGraph
private

! needed to create PDF from histogram

Definition at line 177 of file PDF.h.

◆ fHist

TH1* TMVA::PDF::fHist
private

copy of input histogram

Definition at line 175 of file PDF.h.

◆ fHistAvgEvtPerBin

Int_t TMVA::PDF::fHistAvgEvtPerBin
private

avg event per source hist bin

Definition at line 180 of file PDF.h.

◆ fHistDefinedNBins

Int_t TMVA::PDF::fHistDefinedNBins
private

source hist bin num set by user

Definition at line 181 of file PDF.h.

◆ fHistOriginal

TH1* TMVA::PDF::fHistOriginal
private

the input histogram

Definition at line 176 of file PDF.h.

◆ fIGetVal

TF1* TMVA::PDF::fIGetVal
private

integration interface

Definition at line 178 of file PDF.h.

◆ fInterpolateString

TString TMVA::PDF::fInterpolateString
private

Definition at line 186 of file PDF.h.

◆ fInterpolMethod

TMVA::PDF::EInterpolateMethod TMVA::PDF::fInterpolMethod
private

interpolation method

Definition at line 172 of file PDF.h.

◆ fKDEborder

KDEKernel::EKernelBorder TMVA::PDF::fKDEborder
private

The method to take care about "border" effects (string)

Definition at line 190 of file PDF.h.

◆ fKDEiter

KDEKernel::EKernelIter TMVA::PDF::fKDEiter
private

Number of iterations (adaptive or not)

Definition at line 189 of file PDF.h.

◆ fKDEiterString

TString TMVA::PDF::fKDEiterString
private

Definition at line 184 of file PDF.h.

◆ fKDEtype

KDEKernel::EKernelType TMVA::PDF::fKDEtype
private

Kernel type to use for KDE.

Definition at line 188 of file PDF.h.

◆ fKDEtypeString

TString TMVA::PDF::fKDEtypeString
private

strings used to read definitions

Definition at line 183 of file PDF.h.

◆ fLogger

MsgLogger* TMVA::PDF::fLogger
mutableprivate

! message logger

Definition at line 199 of file PDF.h.

◆ fMaxNsmooth

Int_t TMVA::PDF::fMaxNsmooth
private

Max number of smoothing iterations.

Definition at line 169 of file PDF.h.

◆ fMinNsmooth

Int_t TMVA::PDF::fMinNsmooth
private

Min number of smoothing iterations.

Definition at line 168 of file PDF.h.

◆ fNormalize

Bool_t TMVA::PDF::fNormalize
private

normalize histogram (false for cumulative distribution used in GaussTranform)

Definition at line 196 of file PDF.h.

◆ fNsmooth

Int_t TMVA::PDF::fNsmooth
private

Min number of smoothing iterations.

Definition at line 167 of file PDF.h.

◆ fNSmoothHist

TH1* TMVA::PDF::fNSmoothHist
private

number of smooth for each bin

Definition at line 170 of file PDF.h.

◆ fPDFHist

TH1* TMVA::PDF::fPDFHist
private

the high-binned histogram corresponding to the PDF

Definition at line 174 of file PDF.h.

◆ fPDFName

TString TMVA::PDF::fPDFName
private

for output

Definition at line 166 of file PDF.h.

◆ fReadingVersion

UInt_t TMVA::PDF::fReadingVersion
private

the TMVA version of the weight file

Definition at line 193 of file PDF.h.

◆ fSpline

TSpline* TMVA::PDF::fSpline
private

! the used spline type

Definition at line 173 of file PDF.h.

◆ fSuffix

TString TMVA::PDF::fSuffix
private

! the suffix for options

Definition at line 198 of file PDF.h.

◆ fUseHistogram

Bool_t TMVA::PDF::fUseHistogram
private

Definition at line 155 of file PDF.h.

Libraries for TMVA::PDF:

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