TMVA::LDA Class Reference

#include <LDA.h>

List of all members.

Public Member Functions

 LDA (Float_t tolerence=1.0e-5, Bool_t debug=false)
 ~LDA ()
Float_t GetProb (const std::vector< Float_t > &x, Int_t k)
Float_t GetLogLikelihood (const std::vector< Float_t > &x, Int_t k)
void Initialize (const LDAEvents &inputSignal, const LDAEvents &inputBackground)
 LDA (Float_t tolerence=1.0e-5, Bool_t debug=false)
 ~LDA ()
Float_t GetProb (const std::vector< Float_t > &x, Int_t k)
Float_t GetLogLikelihood (const std::vector< Float_t > &x, Int_t k)
void Initialize (const LDAEvents &inputSignal, const LDAEvents &inputBackground)

Private Member Functions

Float_t FSub (const std::vector< Float_t > &x, Int_t k)
MsgLoggerLog () const
Float_t FSub (const std::vector< Float_t > &x, Int_t k)
MsgLoggerLog () const

Private Attributes

Float_t fTolerence
UInt_t fNumParams
std::map< Int_t, std::vector<
Float_t > > 
fMu
TMatrixFfSigma
TMatrixFfSigmaInverse
std::map< Int_t, Float_tfEventFraction
Bool_t fDebug
MsgLoggerfLogger
std::map< Int_t, std::vector<
Float_t > > 
fMu
TMatrixFfSigma
TMatrixFfSigmaInverse
std::map< Int_t, Float_tfEventFraction
MsgLoggerfLogger


Detailed Description

Definition at line 48 of file LDA.h.


Constructor & Destructor Documentation

TMVA::LDA::LDA ( Float_t  tolerence = 1.0e-5,
Bool_t  debug = false 
)

Definition at line 50 of file LDA.cxx.

TMVA::LDA::~LDA (  ) 

Definition at line 62 of file LDA.cxx.

References fLogger.

TMVA::LDA::LDA ( Float_t  tolerence = 1.0e-5,
Bool_t  debug = false 
)

TMVA::LDA::~LDA (  ) 


Member Function Documentation

Float_t TMVA::LDA::GetProb ( const std::vector< Float_t > &  x,
Int_t  k 
)

Definition at line 236 of file LDA.cxx.

References fEventFraction, and FSub().

Referenced by TMVA::MethodKNN::getLDAValue().

Float_t TMVA::LDA::GetLogLikelihood ( const std::vector< Float_t > &  x,
Int_t  k 
)

Definition at line 248 of file LDA.cxx.

References fEventFraction, FSub(), and TMath::Log().

void TMVA::LDA::Initialize ( const LDAEvents inputSignal,
const LDAEvents inputBackground 
)

Definition at line 69 of file LDA.cxx.

References TMath::Abs(), TDecompSVD::Decompose(), diag, Endl, fDebug, fEventFraction, fMu, fNumParams, fSigma, fSigmaInverse, fTolerence, TDecompSVD::GetSig(), TDecompSVD::GetU(), TDecompSVD::GetV(), i, TMatrixT< Element >::Invert(), j, TMath::K(), TMVA::kDEBUG, TMVA::kWARNING, Log(), TMatrixTBase< Element >::Print(), row, and TMatrixT< Element >::Transpose().

Referenced by TMVA::MethodKNN::getLDAValue().

Float_t TMVA::LDA::FSub ( const std::vector< Float_t > &  x,
Int_t  k 
) [private]

Definition at line 209 of file LDA.cxx.

References TMatrixT< Element >::Determinant(), TMath::Exp(), fMu, fNumParams, fSigma, fSigmaInverse, i, j, TMath::Sqrt(), and TMath::TwoPi().

Referenced by GetLogLikelihood(), and GetProb().

MsgLogger& TMVA::LDA::Log (  )  const [inline, private]

Definition at line 69 of file LDA.h.

References fLogger.

Referenced by Initialize().

Float_t TMVA::LDA::GetProb ( const std::vector< Float_t > &  x,
Int_t  k 
)

Float_t TMVA::LDA::GetLogLikelihood ( const std::vector< Float_t > &  x,
Int_t  k 
)

void TMVA::LDA::Initialize ( const LDAEvents inputSignal,
const LDAEvents inputBackground 
)

Float_t TMVA::LDA::FSub ( const std::vector< Float_t > &  x,
Int_t  k 
) [private]

MsgLogger& TMVA::LDA::Log (  )  const [inline, private]

Definition at line 69 of file LDA.h.

References fLogger.


Member Data Documentation

Float_t TMVA::LDA::fTolerence [private]

Definition at line 74 of file LDA.h.

Referenced by Initialize().

UInt_t TMVA::LDA::fNumParams [private]

Definition at line 75 of file LDA.h.

Referenced by FSub(), and Initialize().

std::map<Int_t, std::vector<Float_t> > TMVA::LDA::fMu [private]

Definition at line 76 of file LDA.h.

Referenced by FSub(), and Initialize().

TMatrixF* TMVA::LDA::fSigma [private]

Definition at line 77 of file LDA.h.

Referenced by FSub(), and Initialize().

TMatrixF* TMVA::LDA::fSigmaInverse [private]

Definition at line 78 of file LDA.h.

Referenced by FSub(), and Initialize().

std::map<Int_t, Float_t> TMVA::LDA::fEventFraction [private]

Definition at line 79 of file LDA.h.

Referenced by GetLogLikelihood(), GetProb(), and Initialize().

Bool_t TMVA::LDA::fDebug [private]

Definition at line 80 of file LDA.h.

Referenced by Initialize().

MsgLogger* TMVA::LDA::fLogger [mutable, private]

Definition at line 82 of file LDA.h.

Referenced by Log(), and ~LDA().

std::map<Int_t, std::vector<Float_t> > TMVA::LDA::fMu [private]

Definition at line 76 of file LDA.h.

TMatrixF* TMVA::LDA::fSigma [private]

Definition at line 77 of file LDA.h.

TMatrixF* TMVA::LDA::fSigmaInverse [private]

Definition at line 78 of file LDA.h.

std::map<Int_t, Float_t> TMVA::LDA::fEventFraction [private]

Definition at line 79 of file LDA.h.

MsgLogger* TMVA::LDA::fLogger [mutable, private]

Definition at line 82 of file LDA.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 17:01:25 2011 for ROOT_528-00b_version by  doxygen 1.5.1