BCModelTest Class Reference

#include <BCModelTest.h>

Inheritance diagram for BCModelTest:

Inheritance graph
[legend]
Collaboration diagram for BCModelTest:

Collaboration graph
[legend]

List of all members.


Detailed Description

The class for testing model hypotheses.

Author:
Daniel Kollar

Kevin Kröninger

Version:
1.0
Date:
08.2008 This class is used for calculating the p-value of a model.

Definition at line 27 of file BCModelTest.h.


Public Member Functions

Constructors and destructors


 BCModelTest (const char *name)
 ~BCModelTest ()
Member functions (get)


double GetCalculatedPValue (bool flag_histogram=false)
TH1D * GetHistogramLogProb ()
BCModelGetTestModel ()
Member functions (miscellaneous methods)


double LogAPrioriProbability (std::vector< double > parameters)
double LogLikelihood (std::vector< double > parameters)
void MCMCUserInterface ()
Member functions (set)


void SetTestModel (BCModel *testmodel)
int SetTestPoint (std::vector< double > parameters)

Private Attributes

TH1D * fHistogramLogProb
double fLogLikelihood
double fLogLikelihoodMax
double fLogLikelihoodMin
std::vector< int > fMapDataPoint
std::vector< int > fMapDataValue
int fPValueAbove
int fPValueBelow
BCDataSetfTemporaryDataSet
BCModelfTestModel

Constructor & Destructor Documentation

BCModelTest::BCModelTest ( const char *  name  ) 

The default constructor.

Definition at line 14 of file BCModelTest.cxx.

BCModelTest::~BCModelTest (  ) 

The default destructor.

Definition at line 40 of file BCModelTest.cxx.


Member Function Documentation

double BCModelTest::GetCalculatedPValue ( bool  flag_histogram = false  ) 

Definition at line 224 of file BCModelTest.cxx.

TH1D* BCModelTest::GetHistogramLogProb (  )  [inline]

Definition at line 59 of file BCModelTest.h.

BCModel* BCModelTest::GetTestModel (  )  [inline]

Definition at line 65 of file BCModelTest.h.

double BCModelTest::LogAPrioriProbability ( std::vector< double >  parameters  )  [inline, virtual]

Returns natural logarithm of the prior probability. Method needs to be overloaded by the user.

Parameters:
parameters A set of parameter values
Returns:
The prior probability p(parameters)
See also:
GetPrior(std::vector <double> parameters)

Reimplemented from BCModel.

Definition at line 94 of file BCModelTest.h.

double BCModelTest::LogLikelihood ( std::vector< double >  parameter  )  [virtual]

Calculates natural logarithm of the likelihood. Method needs to be overloaded by the user.

Parameters:
parameters A set of parameter values
Returns:
Natural logarithm of the likelihood

Reimplemented from BCModel.

Definition at line 66 of file BCModelTest.cxx.

void BCModelTest::MCMCUserInterface (  )  [virtual]

Reimplemented from BCEngineMCMC.

Definition at line 85 of file BCModelTest.cxx.

void BCModelTest::SetTestModel ( BCModel testmodel  )  [inline]

Definition at line 77 of file BCModelTest.h.

int BCModelTest::SetTestPoint ( std::vector< double >  parameters  ) 

Definition at line 119 of file BCModelTest.cxx.


Member Data Documentation

Definition at line 135 of file BCModelTest.h.

double BCModelTest::fLogLikelihood [private]

Definition at line 128 of file BCModelTest.h.

Definition at line 130 of file BCModelTest.h.

Definition at line 129 of file BCModelTest.h.

std::vector<int> BCModelTest::fMapDataPoint [private]

Definition at line 106 of file BCModelTest.h.

std::vector<int> BCModelTest::fMapDataValue [private]

Definition at line 107 of file BCModelTest.h.

Definition at line 113 of file BCModelTest.h.

Definition at line 112 of file BCModelTest.h.

Definition at line 123 of file BCModelTest.h.

Definition at line 118 of file BCModelTest.h.


Generated on Mon Sep 15 17:04:30 2008 for Bayesian Analysis Toolkit by  doxygen 1.5.6