#include <Likelihood.h>
Public Member Functions | |
double | absoluteLog () const |
Likelihood (const Sample &sample, PDF &pdf, Yield &yield) | |
Likelihood () | |
double | log () const |
double | logNFactorial () const |
double | operator() () const |
const PDF & | pdf () const |
PDF & | pdf () |
unsigned int | sampleSize () const |
Yield & | yield () |
const Yield & | yield () const |
Private Types | |
typedef LikelihoodEvaluator < PDF, typename Sample::value_type > | Evaluator |
Private Attributes | |
PDF * | pdf_ |
Sample | sample_ |
unsigned int | sampleSize_ |
Yield * | yield_ |
Definition at line 27 of file Likelihood.h.
typedef LikelihoodEvaluator<PDF, typename Sample::value_type> fit::Likelihood< Sample, PDF, Yield >::Evaluator [private] |
Definition at line 55 of file Likelihood.h.
fit::Likelihood< Sample, PDF, Yield >::Likelihood | ( | ) | [inline] |
Definition at line 29 of file Likelihood.h.
{ }
fit::Likelihood< Sample, PDF, Yield >::Likelihood | ( | const Sample & | sample, |
PDF & | pdf, | ||
Yield & | yield | ||
) | [inline] |
double fit::Likelihood< Sample, PDF, Yield >::absoluteLog | ( | ) | const [inline] |
Definition at line 46 of file Likelihood.h.
References fit::Likelihood< Sample, PDF, Yield >::log(), and fit::Likelihood< Sample, PDF, Yield >::logNFactorial().
{ return log() - logNFactorial(); }
double fit::Likelihood< Sample, PDF, Yield >::log | ( | ) | const [inline] |
Definition at line 34 of file Likelihood.h.
References fit::LikelihoodEvaluator< PDF, Tuple >::evaluate(), i, prof2calltree::l, AlCaHLTBitMon_ParallelJobs::p, fit::Likelihood< Sample, PDF, Yield >::pdf_, fit::Likelihood< Sample, PDF, Yield >::sample_, and fit::Likelihood< Sample, PDF, Yield >::sampleSize_.
Referenced by fit::Likelihood< Sample, PDF, Yield >::absoluteLog(), fit::Likelihood< Sample, PDF, NoExtendedLikelihood >::log(), fit::Likelihood< Sample, PDF, Yield >::logNFactorial(), fit::Likelihood< Sample, PDF, Yield >::operator()(), and fit::Likelihood< Sample, PDF, NoExtendedLikelihood >::operator()().
double fit::Likelihood< Sample, PDF, Yield >::logNFactorial | ( | ) | const [inline] |
Definition at line 43 of file Likelihood.h.
References fit::Likelihood< Sample, PDF, Yield >::log(), and fit::Likelihood< Sample, PDF, Yield >::sampleSize_.
Referenced by fit::Likelihood< Sample, PDF, Yield >::absoluteLog().
{ return std::log(TMath::Factorial(sampleSize_)); }
double fit::Likelihood< Sample, PDF, Yield >::operator() | ( | ) | const [inline] |
Definition at line 33 of file Likelihood.h.
References fit::Likelihood< Sample, PDF, Yield >::log().
{ return log(); }
PDF& fit::Likelihood< Sample, PDF, Yield >::pdf | ( | ) | [inline] |
Definition at line 49 of file Likelihood.h.
References fit::Likelihood< Sample, PDF, Yield >::pdf_.
{ return * pdf_; }
const PDF& fit::Likelihood< Sample, PDF, Yield >::pdf | ( | ) | const [inline] |
Definition at line 50 of file Likelihood.h.
References fit::Likelihood< Sample, PDF, Yield >::pdf_.
{ return * pdf_; }
unsigned int fit::Likelihood< Sample, PDF, Yield >::sampleSize | ( | ) | const [inline] |
Definition at line 53 of file Likelihood.h.
References fit::Likelihood< Sample, PDF, Yield >::sampleSize_.
{ return sampleSize_; }
Yield& fit::Likelihood< Sample, PDF, Yield >::yield | ( | ) | [inline] |
Definition at line 51 of file Likelihood.h.
References fit::Likelihood< Sample, PDF, Yield >::yield_.
{ return * yield_; }
const Yield& fit::Likelihood< Sample, PDF, Yield >::yield | ( | ) | const [inline] |
Definition at line 52 of file Likelihood.h.
References fit::Likelihood< Sample, PDF, Yield >::yield_.
{ return * yield_; }
PDF* fit::Likelihood< Sample, PDF, Yield >::pdf_ [private] |
Definition at line 56 of file Likelihood.h.
Referenced by fit::Likelihood< Sample, PDF, Yield >::log(), fit::Likelihood< Sample, PDF, NoExtendedLikelihood >::log(), fit::Likelihood< Sample, PDF, Yield >::pdf(), and fit::Likelihood< Sample, PDF, NoExtendedLikelihood >::pdf().
Sample fit::Likelihood< Sample, PDF, Yield >::sample_ [private] |
Definition at line 58 of file Likelihood.h.
Referenced by fit::Likelihood< Sample, PDF, Yield >::log(), and fit::Likelihood< Sample, PDF, NoExtendedLikelihood >::log().
unsigned int fit::Likelihood< Sample, PDF, Yield >::sampleSize_ [mutable, private] |
Definition at line 59 of file Likelihood.h.
Referenced by fit::Likelihood< Sample, PDF, Yield >::log(), fit::Likelihood< Sample, PDF, Yield >::logNFactorial(), and fit::Likelihood< Sample, PDF, Yield >::sampleSize().
Yield* fit::Likelihood< Sample, PDF, Yield >::yield_ [private] |
Definition at line 57 of file Likelihood.h.
Referenced by fit::Likelihood< Sample, PDF, Yield >::yield().