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

KDE Kernel for "smoothing" the PDFs.

Definition at line 50 of file KDEKernel.h.

Public Types

enum  EKernelBorder { kNoTreatment = 1 , kKernelRenorm = 2 , kSampleMirror = 3 }
 
enum  EKernelIter { kNonadaptiveKDE = 1 , kAdaptiveKDE = 2 }
 
enum  EKernelType { kNone = 0 , kGauss = 1 }
 

Public Member Functions

 KDEKernel (EKernelIter kiter=kNonadaptiveKDE, const TH1 *hist=nullptr, Float_t lower_edge=0., Float_t upper_edge=1., EKernelBorder kborder=kNoTreatment, Float_t FineFactor=1.)
 constructor sanity check
 
virtual ~KDEKernel (void)
 destructor
 
Float_t GetBinKernelIntegral (Float_t lowr, Float_t highr, Float_t mean, Int_t binnum)
 calculates the integral of the Kernel
 
const char * GetName () const
 
virtual TClassIsA () const
 
void SetKernelType (EKernelType ktype=kGauss)
 fIter == 1 —> nonadaptive KDE fIter == 2 —> adaptive KDE
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Private Member Functions

MsgLoggerLog () const
 

Private Attributes

Float_t fFineFactor
 fine tuning factor for Adaptive KDE: factor to multiply the "width" of the Kernel function
 
TH1FfFirstIterHist
 histogram to be filled in the hidden iteration
 
Bool_t fHiddenIteration
 Defines if whats currently running is the.
 
TH1FfHist
 copy of input histogram
 
EKernelIter fIter
 iteration number
 
EKernelBorder fKDEborder
 The method to take care about "border" effects.
 
TF1fKernel_integ
 the integral of the Kernel function
 
MsgLoggerfLogger
 message logger
 
Float_t fLowerEdge
 the lower edge of the PDF
 
Float_t fSigma
 Width of the Kernel function.
 
TH1FfSigmaHist
 contains the Sigmas Widths for adaptive KDE
 
Float_t fUpperEdge
 the upper edge of the PDF
 

#include <TMVA/KDEKernel.h>

Member Enumeration Documentation

◆ EKernelBorder

Enumerator
kNoTreatment 
kKernelRenorm 
kSampleMirror 

Definition at line 56 of file KDEKernel.h.

◆ EKernelIter

Enumerator
kNonadaptiveKDE 
kAdaptiveKDE 

Definition at line 55 of file KDEKernel.h.

◆ EKernelType

Enumerator
kNone 
kGauss 

Definition at line 54 of file KDEKernel.h.

Constructor & Destructor Documentation

◆ KDEKernel()

TMVA::KDEKernel::KDEKernel ( EKernelIter  kiter = kNonadaptiveKDE,
const TH1 hist = nullptr,
Float_t  lower_edge = 0.,
Float_t  upper_edge = 1.,
EKernelBorder  kborder = kNoTreatment,
Float_t  FineFactor = 1. 
)

constructor sanity check

Definition at line 49 of file KDEKernel.cxx.

◆ ~KDEKernel()

TMVA::KDEKernel::~KDEKernel ( void  )
virtual

destructor

Definition at line 76 of file KDEKernel.cxx.

Member Function Documentation

◆ Class()

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

◆ Class_Name()

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

◆ Class_Version()

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

Definition at line 91 of file KDEKernel.h.

◆ DeclFileName()

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

Definition at line 91 of file KDEKernel.h.

◆ GetBinKernelIntegral()

Float_t TMVA::KDEKernel::GetBinKernelIntegral ( Float_t  lowr,
Float_t  highr,
Float_t  mean,
Int_t  binnum 
)

calculates the integral of the Kernel

Definition at line 217 of file KDEKernel.cxx.

◆ GetName()

const char * TMVA::KDEKernel::GetName ( ) const
inline

Definition at line 71 of file KDEKernel.h.

◆ IsA()

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

Definition at line 91 of file KDEKernel.h.

◆ Log()

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

Definition at line 89 of file KDEKernel.h.

◆ SetKernelType()

void TMVA::KDEKernel::SetKernelType ( EKernelType  ktype = kGauss)

fIter == 1 —> nonadaptive KDE fIter == 2 —> adaptive KDE

Definition at line 112 of file KDEKernel.cxx.

◆ Streamer()

virtual void TMVA::KDEKernel::Streamer ( TBuffer )
virtual

◆ StreamerNVirtual()

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

Definition at line 91 of file KDEKernel.h.

Member Data Documentation

◆ fFineFactor

Float_t TMVA::KDEKernel::fFineFactor
private

fine tuning factor for Adaptive KDE: factor to multiply the "width" of the Kernel function

Definition at line 79 of file KDEKernel.h.

◆ fFirstIterHist

TH1F* TMVA::KDEKernel::fFirstIterHist
private

histogram to be filled in the hidden iteration

Definition at line 83 of file KDEKernel.h.

◆ fHiddenIteration

Bool_t TMVA::KDEKernel::fHiddenIteration
private

Defines if whats currently running is the.

Definition at line 85 of file KDEKernel.h.

◆ fHist

TH1F* TMVA::KDEKernel::fHist
private

copy of input histogram

Definition at line 82 of file KDEKernel.h.

◆ fIter

EKernelIter TMVA::KDEKernel::fIter
private

iteration number

Definition at line 76 of file KDEKernel.h.

◆ fKDEborder

EKernelBorder TMVA::KDEKernel::fKDEborder
private

The method to take care about "border" effects.

Definition at line 81 of file KDEKernel.h.

◆ fKernel_integ

TF1* TMVA::KDEKernel::fKernel_integ
private

the integral of the Kernel function

Definition at line 80 of file KDEKernel.h.

◆ fLogger

MsgLogger* TMVA::KDEKernel::fLogger
mutableprivate

message logger

Definition at line 88 of file KDEKernel.h.

◆ fLowerEdge

Float_t TMVA::KDEKernel::fLowerEdge
private

the lower edge of the PDF

Definition at line 77 of file KDEKernel.h.

◆ fSigma

Float_t TMVA::KDEKernel::fSigma
private

Width of the Kernel function.

Definition at line 75 of file KDEKernel.h.

◆ fSigmaHist

TH1F* TMVA::KDEKernel::fSigmaHist
private

contains the Sigmas Widths for adaptive KDE

Definition at line 84 of file KDEKernel.h.

◆ fUpperEdge

Float_t TMVA::KDEKernel::fUpperEdge
private

the upper edge of the PDF

Definition at line 78 of file KDEKernel.h.

Libraries for TMVA::KDEKernel:

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