38#ifndef ROOT_TMVA_MethodLikelihood
39#define ROOT_TMVA_MethodLikelihood
#define ClassDef(name, id)
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
1-D histogram with a double per channel (see TH1 documentation)}
Class that contains all the data information.
Virtual base Class for all MVA method.
Likelihood analysis ("non-parametric approach")
const Ranking * CreateRanking()
computes ranking of input variables
void Train()
create reference distributions (PDFs) from signal and background events: fill histograms and smooth t...
virtual Bool_t HasAnalysisType(Types::EAnalysisType type, UInt_t numberClasses, UInt_t numberTargets)
FDA can handle classification with 2 classes.
virtual void WriteOptionsToStream(std::ostream &o, const TString &prefix) const
write options to stream
void WriteMonitoringHistosToFile() const
write histograms and PDFs to file for monitoring purposes
void DeclareCompatibilityOptions()
options that are used ONLY for the READER to ensure backward compatibility they are hence without any...
Int_t * fAverageEvtPerBinVarS
void MakeClassSpecific(std::ostream &, const TString &) const
write specific classifier response
std::vector< TH1 * > * fHistSig
virtual ~MethodLikelihood()
destructor
void Init()
default initialisation called by all constructors
std::vector< TH1 * > * fHistBgd
void ReadWeightsFromStream(std::istream &istr)
read weight info from file nothing to do for this method
std::vector< PDF * > * fPDFSig
TString * fInterpolateString
MethodLikelihood(const TString &jobName, const TString &methodTitle, DataSetInfo &theData, const TString &theOption="")
standard constructor
void GetHelpMessage() const
get help message text
Double_t GetMvaValue(Double_t *err=0, Double_t *errUpper=0)
returns the likelihood estimator for signal fill a new Likelihood branch into the testTree
void ReadWeightsFromXML(void *wghtnode)
read weights from XML
std::vector< TH1 * > * fHistSig_smooth
Bool_t fTransformLikelihoodOutput
void MakeClassSpecificHeader(std::ostream &, const TString &="") const
write specific header of the classifier (mostly include files)
Double_t TransformLikelihoodOutput(Double_t ps, Double_t pb) const
returns transformed or non-transformed output
std::vector< TH1 * > * fHistBgd_smooth
TString fBorderMethodString
std::vector< PDF * > * fPDFBgd
void ProcessOptions()
process user options reference cut value to distinguish signal-like from background-like events
void WriteWeightsToStream(TFile &rf) const
write reference PDFs to ROOT file
void AddWeightsXMLTo(void *parent) const
write weights to XML
Int_t * fAverageEvtPerBinVarB
void DeclareOptions()
define the options (their key words) that can be set in the option string
PDF wrapper for histograms; uses user-defined spline interpolation.
Ranking for variables in method (implementation)
static constexpr double ps
create variable transformations