#include <PDF.h>
Inheritance diagram for TMVA::PDF:
Definition at line 66 of file PDF.h.
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] |
TMVA::PDF::PDF | ( | const TString & | name, | |
const TString & | options, | |||
const TString & | suffix = "" , |
|||
PDF * | defaultPDF = 0 , |
|||
Bool_t | norm = kTRUE | |||
) | [explicit] |
Definition at line 176 of file PDF.cxx.
References fBorderMethodString, fCheckHist, fFineFactor, fHistAvgEvtPerBin, fHistDefinedNBins, fInterpolateString, fKDEiterString, fKDEtypeString, fLogger, fMaxNsmooth, fMinNsmooth, and fNsmooth.
TMVA::PDF::~PDF | ( | ) | [virtual] |
TMVA::PDF::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 | |||
) | [explicit] |
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] |
TMVA::PDF::PDF | ( | const TString & | name, | |
const TString & | options, | |||
const TString & | suffix = "" , |
|||
PDF * | defaultPDF = 0 , |
|||
Bool_t | norm = kTRUE | |||
) | [explicit] |
virtual TMVA::PDF::~PDF | ( | ) | [virtual] |
void TMVA::PDF::BuildPDF | ( | const TH1 * | theHist | ) |
Definition at line 242 of file PDF.cxx.
References BuildKDEPDF(), BuildSplinePDF(), Endl, fgThisPDF, fHist, fHistOriginal, fInterpolMethod, fKDEiter, fKDEtype, fMaxNsmooth, fMinNsmooth, fUseHistogram, TNamed::GetName(), hist, TMVA::KDEKernel::kAdaptiveKDE, kFALSE, TMVA::kFATAL, TMVA::KDEKernel::kGauss, kKDE, TMVA::KDEKernel::kNonadaptiveKDE, Log(), NULL, TH1::SetDirectory(), and TH1::SetTitle().
Referenced by TMVA::MethodBase::CreateMVAPdfs(), and PDF().
Definition at line 679 of file PDF.cxx.
References fgEpsilon, TH1::FindBin(), fPDFHist, TH1::GetBinCenter(), TH1::GetBinContent(), TH1::GetNbinsX(), TMath::Max(), TMath::Min(), retval, and UseHistogram().
Referenced by TMVA::MethodBase::GetProba(), TMVA::OptimizeConfigParameters::GetROCIntegral(), TMVA::MethodBase::GetROCIntegral(), TMVA::Tools::GetSeparation(), IGetVal(), and ValidatePDF().
void TMVA::PDF::AddXMLTo | ( | void * | parent | ) |
Definition at line 823 of file PDF.cxx.
References TMVA::Tools::AddAttr(), TMVA::Tools::AddChild(), TMVA::Tools::AddRawLine(), fFineFactor, fInterpolMethod, fKDEborder, fKDEiter, fKDEtype, fMaxNsmooth, fMinNsmooth, fPDFName, TH1::GetBinContent(), TAxis::GetBinLowEdge(), TNamed::GetName(), TH1::GetNbinsX(), GetOriginalHist(), TH1::GetXaxis(), TAxis::GetXmax(), TAxis::GetXmin(), TMVA::gTools(), TMVA::Tools::HistoHasEquidistantBins(), i, and TMVA::Tools::StringFromDouble().
Referenced by TMVA::MethodBase::WriteStateToXML().
void TMVA::PDF::ReadXML | ( | void * | pdfnode | ) |
Definition at line 864 of file PDF.cxx.
References BuildKDEPDF(), BuildSplinePDF(), TNamed::Clone(), Endl, fFineFactor, fHist, fHistOriginal, fInterpolMethod, fKDEborder, fKDEiter, fKDEtype, fMaxNsmooth, fMinNsmooth, TMVA::Tools::GetChild(), TMVA::Tools::GetContent(), TMVA::Tools::GetNextChild(), TMVA::gTools(), i, TMVA::kFATAL, kKDE, Log(), nbins, TMVA::Tools::ReadAttr(), TString::ReplaceAll(), s, TH1::SetBinContent(), TH1::SetDirectory(), TH1::SetTitle(), val, xmax, and xmin.
Referenced by TMVA::VariableGaussTransform::ReadFromXML(), and TMVA::MethodBase::ReadStateFromXML().
TH1* TMVA::PDF::GetPDFHist | ( | ) | const [inline] |
Definition at line 94 of file PDF.h.
References fPDFHist.
Referenced by TMVA::MethodLikelihood::GetMvaValue(), GetPdfHistBinWidth(), and TMVA::MethodBase::WriteEvaluationHistosToFile().
TH1* TMVA::PDF::GetOriginalHist | ( | ) | const [inline] |
Definition at line 95 of file PDF.h.
References fHistOriginal.
Referenced by AddXMLTo(), TMVA::operator<<(), and TMVA::MethodBase::WriteEvaluationHistosToFile().
TH1* TMVA::PDF::GetSmoothedHist | ( | ) | const [inline] |
Definition at line 96 of file PDF.h.
References fHist.
Referenced by TMVA::MethodBase::WriteEvaluationHistosToFile().
TH1* TMVA::PDF::GetNSmoothHist | ( | ) | const [inline] |
Definition at line 633 of file PDF.cxx.
References Endl, fgManualIntegration, fIGetVal, TH1::FindBin(), fPDFHist, TH1::GetBinContent(), TH1::GetBinLowEdge(), TH1::GetBinWidth(), TH1::GetNbinsX(), GetXmax(), GetXmin(), IGetVal(), TF1::Integral(), TMVA::kFATAL, TMVA::kWARNING, and Log().
Referenced by TMVA::MethodBase::GetRarity(), TMVA::OptimizeConfigParameters::GetROCIntegral(), and TMVA::MethodBase::GetROCIntegral().
TSpline* TMVA::PDF::GetSpline | ( | ) | const [inline] |
Int_t TMVA::PDF::GetNBins | ( | ) | const [inline] |
Double_t TMVA::PDF::GetXmin | ( | ) | const [inline] |
Definition at line 105 of file PDF.h.
References fHist, TH1::GetXaxis(), and TAxis::GetXmin().
Referenced by BuildKDEPDF(), CheckHist(), FillSplineToHist(), GetIntegral(), TMVA::MethodBase::GetRarity(), TMVA::MethodBase::GetROCIntegral(), TMVA::OptimizeConfigParameters::GetROCIntegral(), and TMVA::Tools::GetSeparation().
Double_t TMVA::PDF::GetXmax | ( | ) | const [inline] |
Definition at line 106 of file PDF.h.
References fHist, TH1::GetXaxis(), and TAxis::GetXmax().
Referenced by BuildKDEPDF(), CheckHist(), FillSplineToHist(), GetIntegral(), TMVA::MethodBase::GetROCIntegral(), TMVA::OptimizeConfigParameters::GetROCIntegral(), and TMVA::Tools::GetSeparation().
void TMVA::PDF::ValidatePDF | ( | TH1 * | original = 0 |
) | const |
Definition at line 558 of file PDF.cxx.
References TMath::Abs(), d, Endl, fHistOriginal, TH1::FindBin(), Form(), fPDFHist, TH1::GetBinCenter(), TH1::GetBinContent(), TH1::GetBinError(), TH1::GetBinWidth(), TH1::GetNbinsX(), TArray::GetSize(), TH1::GetSumOfWeights(), TH1::GetSumw2(), TNamed::GetTitle(), GetVal(), TMVA::kWARNING, Log(), nbins, TMath::Prob(), TH1::Sumw2(), x, and y.
Referenced by TMVA::MethodBase::CreateMVAPdfs().
Definition at line 286 of file PDF.cxx.
References Endl, fHistAvgEvtPerBin, fHistDefinedNBins, fInterpolMethod, TMVA::kFATAL, kKDE, and Log().
Referenced by TMVA::MethodBase::CreateMVAPdfs().
TMVA::PDF::EInterpolateMethod TMVA::PDF::GetInterpolMethod | ( | ) | [inline] |
const char* TMVA::PDF::GetName | ( | ) | const [inline, virtual] |
Reimplemented from TMVA::Configurable.
Definition at line 117 of file PDF.h.
References fPDFName.
Referenced by DeclareOptions().
void TMVA::PDF::SetReadingVersion | ( | UInt_t | rv | ) | [inline] |
Definition at line 120 of file PDF.h.
References fReadingVersion.
Referenced by TMVA::MethodBase::ReadStateFromStream().
UInt_t TMVA::PDF::GetReadingVersion | ( | ) | const [inline] |
void TMVA::PDF::ProcessOptions | ( | ) |
Definition at line 775 of file PDF.cxx.
References Endl, fBorderMethodString, fInterpolateString, fInterpolMethod, fKDEborder, fKDEiter, fKDEiterString, fKDEtype, fKDEtypeString, fMaxNsmooth, fMinNsmooth, fNsmooth, Form(), fSuffix, TMVA::KDEKernel::kAdaptiveKDE, TMVA::kFATAL, TMVA::KDEKernel::kGauss, kKDE, TMVA::KDEKernel::kKernelRenorm, TMVA::KDEKernel::kNonadaptiveKDE, TMVA::KDEKernel::kNoTreatment, TMVA::KDEKernel::kSampleMirror, kSpline0, kSpline1, kSpline2, kSpline3, kSpline5, and Log().
Referenced by TMVA::MethodBase::ProcessBaseOptions(), and TMVA::MethodLikelihood::ProcessOptions().
void TMVA::PDF::DeclareOptions | ( | ) |
Definition at line 712 of file PDF.cxx.
References TMVA::Configurable::AddPreDefVal(), TString::Data(), TMVA::Configurable::DeclareOptionRef(), fBorderMethodString, fCheckHist, fFineFactor, fHistAvgEvtPerBin, fHistDefinedNBins, fInterpolateString, fKDEiterString, fKDEtypeString, fMaxNsmooth, fMinNsmooth, fNsmooth, Form(), fSuffix, GetName(), TMVA::Configurable::SetConfigDescription(), and TMVA::Configurable::SetConfigName().
Referenced by TMVA::MethodLikelihood::DeclareOptions(), and TMVA::MethodBase::ProcessBaseOptions().
void TMVA::PDF::CheckHist | ( | ) | const [private] |
Definition at line 534 of file PDF.cxx.
References Endl, fHist, TH1::GetBinContent(), TH1::GetMean(), TNamed::GetName(), TH1::GetNbinsX(), GetXmax(), GetXmin(), TMVA::kFATAL, TMVA::kWARNING, Log(), nbins, and NULL.
Referenced by BuildSplinePDF().
void TMVA::PDF::FillSplineToHist | ( | ) | [private] |
Definition at line 503 of file PDF.cxx.
References TNamed::Clone(), TSpline::Eval(), fgEpsilon, fgNbin_PdfHist, fHist, TH1::FindBin(), fPDFHist, fSpline, TH1::GetBinCenter(), TH1::GetBinContent(), TNamed::GetName(), TNamed::GetTitle(), GetXmax(), GetXmin(), TMath::Max(), TH1::SetBinContent(), TH1::SetDirectory(), TH1::SetName(), TH1::SetTitle(), UseHistogram(), x, and y.
Referenced by BuildSplinePDF().
void TMVA::PDF::BuildKDEPDF | ( | ) | [private] |
Definition at line 366 of file PDF.cxx.
References TH1::AddBinContent(), Endl, fFineFactor, fgNbin_PdfHist, fHist, fKDEborder, fKDEiter, fKDEtype, fNormalize, fPDFHist, TH1::GetBinCenter(), TH1::GetBinContent(), TMVA::KDEKernel::GetBinKernelIntegral(), TH1::GetBinLowEdge(), TH1::GetBinWidth(), TH1::GetEntries(), GetIntegral(), TNamed::GetName(), TH1::GetNbinsX(), TNamed::GetTitle(), GetXmax(), GetXmin(), i, j, TMVA::kFATAL, Log(), TH1::Scale(), TH1::SetDirectory(), TH1::SetEntries(), TMVA::KDEKernel::SetKernelType(), TH1::SetName(), and TH1::SetTitle().
Referenced by BuildPDF(), TMVA::operator>>(), and ReadXML().
void TMVA::PDF::SmoothHistogram | ( | ) | [private] |
Definition at line 435 of file PDF.cxx.
References Err, fHist, fMaxNsmooth, fMinNsmooth, fNSmoothHist, TH1::GetBinContent(), TH1::GetBinError(), TNamed::GetName(), TH1::GetNbinsX(), TNamed::GetTitle(), TMath::Max(), TMath::Min(), n, num, TH1::SetBinContent(), TH1::SetName(), TH1::SetTitle(), TH1::Smooth(), and TMath::Sqrt().
Referenced by BuildSplinePDF().
void TMVA::PDF::FillHistToGraph | ( | ) | [private] |
Double_t TMVA::PDF::GetIntegral | ( | ) | const [private] |
Definition at line 615 of file PDF.cxx.
References fPDFHist, GetPdfHistBinWidth(), and TH1::GetSumOfWeights().
Referenced by BuildKDEPDF(), and BuildSplinePDF().
Double_t TMVA::PDF::GetPdfHistBinWidth | ( | ) | const [inline, private] |
Definition at line 139 of file PDF.h.
References fPDFHist, GetPDFHist(), and h.
Referenced by GetIntegral().
Bool_t TMVA::PDF::UseHistogram | ( | ) | const [inline, private] |
Definition at line 145 of file PDF.h.
References fUseHistogram.
Referenced by BuildSplinePDF(), FillSplineToHist(), and GetVal().
void TMVA::PDF::BuildSplinePDF | ( | ) | [private] |
Definition at line 301 of file PDF.cxx.
References CheckHist(), Endl, fCheckHist, fGraph, fHist, FillHistToGraph(), FillSplineToHist(), fInterpolMethod, fMaxNsmooth, fMinNsmooth, fNormalize, fNSmoothHist, fPDFHist, fSpline, fUseHistogram, GetIntegral(), TNamed::GetName(), TNamed::GetTitle(), TMVA::kFATAL, kSpline0, kSpline1, kSpline2, kSpline3, kSpline5, kTRUE, TMVA::kWARNING, Log(), TH1::Scale(), TH1::SetDirectory(), TNamed::SetName(), TNamed::SetTitle(), SmoothHistogram(), and UseHistogram().
Referenced by BuildPDF(), TMVA::operator>>(), and ReadXML().
MsgLogger& TMVA::PDF::Log | ( | ) | const [inline, private] |
message logger
Reimplemented from TMVA::Configurable.
Definition at line 198 of file PDF.h.
References fLogger.
Referenced by BuildKDEPDF(), BuildPDF(), BuildSplinePDF(), CheckHist(), GetHistNBins(), GetIntegral(), ProcessOptions(), ReadXML(), and ValidatePDF().
TMVA::PDF * TMVA::PDF::ThisPDF | ( | void | ) | [static, private] |
Definition at line 626 of file PDF.cxx.
References GetVal(), and ThisPDF().
Referenced by GetIntegral().
void TMVA::PDF::BuildPDF | ( | const TH1 * | theHist | ) |
void TMVA::PDF::AddXMLTo | ( | void * | parent | ) |
void TMVA::PDF::ReadXML | ( | void * | pdfnode | ) |
TH1* TMVA::PDF::GetPDFHist | ( | ) | const [inline] |
TH1* TMVA::PDF::GetOriginalHist | ( | ) | const [inline] |
TH1* TMVA::PDF::GetSmoothedHist | ( | ) | const [inline] |
TH1* TMVA::PDF::GetNSmoothHist | ( | ) | const [inline] |
TSpline* TMVA::PDF::GetSpline | ( | ) | const [inline] |
Int_t TMVA::PDF::GetNBins | ( | ) | const [inline] |
Double_t TMVA::PDF::GetXmin | ( | ) | const [inline] |
Double_t TMVA::PDF::GetXmax | ( | ) | const [inline] |
void TMVA::PDF::ValidatePDF | ( | TH1 * | original = 0 |
) | const |
TMVA::PDF::EInterpolateMethod TMVA::PDF::GetInterpolMethod | ( | ) | [inline] |
const char* TMVA::PDF::GetName | ( | ) | const [inline, virtual] |
void TMVA::PDF::SetReadingVersion | ( | UInt_t | rv | ) | [inline] |
UInt_t TMVA::PDF::GetReadingVersion | ( | ) | const [inline] |
void TMVA::PDF::ProcessOptions | ( | ) |
void TMVA::PDF::DeclareOptions | ( | ) |
void TMVA::PDF::CheckHist | ( | ) | const [private] |
void TMVA::PDF::FillSplineToHist | ( | ) | [private] |
void TMVA::PDF::BuildKDEPDF | ( | ) | [private] |
void TMVA::PDF::SmoothHistogram | ( | ) | [private] |
void TMVA::PDF::FillHistToGraph | ( | ) | [private] |
Double_t TMVA::PDF::GetIntegral | ( | ) | const [private] |
Double_t TMVA::PDF::GetPdfHistBinWidth | ( | ) | const [inline, private] |
Bool_t TMVA::PDF::UseHistogram | ( | ) | const [inline, private] |
void TMVA::PDF::BuildSplinePDF | ( | ) | [private] |
MsgLogger& TMVA::PDF::Log | ( | ) | const [inline, private] |
message logger
Reimplemented from TMVA::Configurable.
Definition at line 198 of file PDF.h.
References fLogger.
static PDF* TMVA::PDF::ThisPDF | ( | void | ) | [static, private] |
ostream& operator<< | ( | ostream & | os, | |
const PDF & | tree | |||
) | [friend] |
ostream& operator<< | ( | ostream & | os, | |
const PDF & | tree | |||
) | [friend] |
Bool_t TMVA::PDF::fUseHistogram [private] |
Definition at line 153 of file PDF.h.
Referenced by BuildPDF(), BuildSplinePDF(), and UseHistogram().
const Int_t TMVA::PDF::fgNbin_PdfHist [static, private] |
const Bool_t TMVA::PDF::fgManualIntegration [static, private] |
const Double_t TMVA::PDF::fgEpsilon [static, private] |
TString TMVA::PDF::fPDFName [private] |
Int_t TMVA::PDF::fNsmooth [private] |
Int_t TMVA::PDF::fMinNsmooth [private] |
Definition at line 166 of file PDF.h.
Referenced by AddXMLTo(), BuildPDF(), BuildSplinePDF(), DeclareOptions(), TMVA::operator<<(), TMVA::operator>>(), PDF(), ProcessOptions(), ReadXML(), and SmoothHistogram().
Int_t TMVA::PDF::fMaxNsmooth [private] |
Definition at line 167 of file PDF.h.
Referenced by AddXMLTo(), BuildPDF(), BuildSplinePDF(), DeclareOptions(), TMVA::operator<<(), TMVA::operator>>(), PDF(), ProcessOptions(), ReadXML(), and SmoothHistogram().
TH1* TMVA::PDF::fNSmoothHist [private] |
Definition at line 168 of file PDF.h.
Referenced by BuildSplinePDF(), GetNSmoothHist(), and SmoothHistogram().
Definition at line 170 of file PDF.h.
Referenced by AddXMLTo(), BuildPDF(), BuildSplinePDF(), GetHistNBins(), GetInterpolMethod(), TMVA::operator<<(), TMVA::operator>>(), ProcessOptions(), and ReadXML().
TSpline* TMVA::PDF::fSpline [private] |
Definition at line 171 of file PDF.h.
Referenced by BuildSplinePDF(), FillSplineToHist(), GetSpline(), and ~PDF().
TH1* TMVA::PDF::fPDFHist [private] |
the used spline type
Definition at line 172 of file PDF.h.
Referenced by BuildKDEPDF(), BuildSplinePDF(), FillSplineToHist(), GetIntegral(), GetPDFHist(), GetPdfHistBinWidth(), GetVal(), ValidatePDF(), and ~PDF().
TH1* TMVA::PDF::fHist [private] |
Definition at line 173 of file PDF.h.
Referenced by BuildKDEPDF(), BuildPDF(), BuildSplinePDF(), CheckHist(), FillHistToGraph(), FillSplineToHist(), GetNBins(), GetSmoothedHist(), GetXmax(), GetXmin(), TMVA::operator>>(), ReadXML(), SmoothHistogram(), and ~PDF().
TH1* TMVA::PDF::fHistOriginal [private] |
Definition at line 174 of file PDF.h.
Referenced by BuildPDF(), GetOriginalHist(), TMVA::operator>>(), ReadXML(), ValidatePDF(), and ~PDF().
TGraph* TMVA::PDF::fGraph [private] |
Definition at line 175 of file PDF.h.
Referenced by BuildSplinePDF(), FillHistToGraph(), and ~PDF().
TF1* TMVA::PDF::fIGetVal [private] |
needed to create PDF from histogram
Definition at line 176 of file PDF.h.
Referenced by GetIntegral(), and ~PDF().
Int_t TMVA::PDF::fHistAvgEvtPerBin [private] |
Int_t TMVA::PDF::fHistDefinedNBins [private] |
TString TMVA::PDF::fKDEtypeString [private] |
TString TMVA::PDF::fKDEiterString [private] |
TString TMVA::PDF::fBorderMethodString [private] |
TString TMVA::PDF::fInterpolateString [private] |
KDEKernel::EKernelType TMVA::PDF::fKDEtype [private] |
Definition at line 186 of file PDF.h.
Referenced by AddXMLTo(), BuildKDEPDF(), BuildPDF(), TMVA::operator<<(), TMVA::operator>>(), ProcessOptions(), and ReadXML().
KDEKernel::EKernelIter TMVA::PDF::fKDEiter [private] |
Definition at line 187 of file PDF.h.
Referenced by AddXMLTo(), BuildKDEPDF(), BuildPDF(), TMVA::operator<<(), TMVA::operator>>(), ProcessOptions(), and ReadXML().
Definition at line 188 of file PDF.h.
Referenced by AddXMLTo(), BuildKDEPDF(), TMVA::operator<<(), TMVA::operator>>(), ProcessOptions(), and ReadXML().
Float_t TMVA::PDF::fFineFactor [private] |
Definition at line 189 of file PDF.h.
Referenced by AddXMLTo(), BuildKDEPDF(), DeclareOptions(), TMVA::operator<<(), TMVA::operator>>(), PDF(), and ReadXML().
UInt_t TMVA::PDF::fReadingVersion [private] |
Bool_t TMVA::PDF::fCheckHist [private] |
Bool_t TMVA::PDF::fNormalize [private] |
TString TMVA::PDF::fSuffix [private] |
MsgLogger* TMVA::PDF::fLogger [mutable, private] |
TMVA::PDF * TMVA::PDF::fgThisPDF [static, private] |
TH1* TMVA::PDF::fNSmoothHist [private] |
TSpline* TMVA::PDF::fSpline [private] |
TH1* TMVA::PDF::fPDFHist [private] |
TH1* TMVA::PDF::fHist [private] |
TH1* TMVA::PDF::fHistOriginal [private] |
TGraph* TMVA::PDF::fGraph [private] |
TF1* TMVA::PDF::fIGetVal [private] |
MsgLogger* TMVA::PDF::fLogger [mutable, private] |
PDF* TMVA::PDF::fgThisPDF [static, private] |