60 std::ostream& operator<< ( std::ostream& os,
const PDF& tree );
140 return (
fPDFHist) ? (
h->GetXaxis()->GetXmax() -
h->GetXaxis()->GetXmin())/
h->GetNbinsX() : 1;
#define ClassDef(name, id)
A TGraph is an object made of two arrays X and Y with npoints each.
TH1 is the base class of all histogram classes in ROOT.
virtual Int_t GetNbinsX() const
ostringstream derivative to redirect and format output
PDF wrapper for histograms; uses user-defined spline interpolation.
void SetReadingVersion(UInt_t rv)
static const Bool_t fgManualIntegration
manual integration (sum over bins) or DGAUSS
KDEKernel::EKernelType fKDEtype
Kernel type to use for KDE.
void FillHistToGraph()
Simple conversion.
void BuildPDF(const TH1 *theHist)
KDEKernel::EKernelBorder fKDEborder
The method to take care about "border" effects (string)
static Double_t IGetVal(Double_t *, Double_t *)
static external auxiliary function (integrand)
TString fBorderMethodString
Int_t fMaxNsmooth
Max number of smoothing iterations.
TH1 * fPDFHist
the high-binned histogram corresponding to the PDF
Bool_t UseHistogram() const
void ValidatePDF(TH1 *original=nullptr) const
comparison of original histogram with reference PDF
TMVA::PDF::EInterpolateMethod fInterpolMethod
interpolation method
TSpline * fSpline
! the used spline type
UInt_t fReadingVersion
the TMVA version of the weight file
friend std::istream & operator>>(std::istream &istr, PDF &tree)
TGraph * fGraph
! needed to create PDF from histogram
Double_t GetValInverse(Double_t y, Bool_t isMonotonouslyIncreasingFunction=kFALSE) const
returns value
Double_t GetPdfHistBinWidth() const
void CheckHist() const
sanity check: compare PDF with original histogram
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
Int_t fHistDefinedNBins
source hist bin num set by user
TString fPDFName
for output
void ReadXML(void *pdfnode)
XML file reading.
friend std::ostream & operator<<(std::ostream &os, const PDF &tree)
TString fInterpolateString
Int_t fNsmooth
Min number of smoothing iterations.
void DeclareOptions()
define the options (their key words) that can be set in the option string
TF1 * fIGetVal
integration interface
void AddXMLTo(void *parent)
XML file writing.
void BuildSplinePDF()
build the PDF from the original histograms
TH1 * fNSmoothHist
number of smooth for each bin
UInt_t GetReadingVersion() const
void FillSplineToHist()
creates high-binned reference histogram to be used instead of the PDF for speed reasons
void BuildKDEPDF()
creates high-binned reference histogram to be used instead of the PDF for speed reasons
Int_t fMinNsmooth
Min number of smoothing iterations.
Int_t GetHistNBins(Int_t evtNum=0)
static const Double_t fgEpsilon
minimum PDF return
TH1 * GetOriginalHist() const
Float_t fFineFactor
fine tuning factor for Adaptive KDE
static PDF *& GetThisPdfThreadLocal()
Double_t GetVal(Double_t x) const
returns value PDF(x)
Int_t fHistAvgEvtPerBin
avg event per source hist bin
Double_t GetIntegral() const
computes normalisation
TSpline * GetSpline() const
Bool_t fCheckHist
check of source histogram
MsgLogger * fLogger
! message logger
TString fKDEtypeString
strings used to read definitions
TH1 * GetNSmoothHist() const
Bool_t fNormalize
normalize histogram (false for cumulative distribution used in GaussTranform)
TString fSuffix
! the suffix for options
TH1 * GetSmoothedHist() const
TH1 * fHistOriginal
the input histogram
static const Int_t fgNbin_PdfHist
number of bins in high-binned reference histogram
TMVA::PDF::EInterpolateMethod GetInterpolMethod()
KDEKernel::EKernelIter fKDEiter
Number of iterations (adaptive or not)
TGraph * GetGraph() const
const char * GetName() const
Returns name of object.
TH1 * fHist
copy of input histogram
static PDF * ThisPDF(void)
Base class for spline implementation containing the Draw/Paint methods.
create variable transformations
std::istream & operator>>(std::istream &istr, BinaryTree &tree)