BAT
0.9.4
The Bayesian analysis toolkit
Main Page
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Enumerations
BCMVCPhysicsModel.h
1
/*
2
* Copyright (C) 2007-2014, the BAT core developer team
3
* All rights reserved.
4
*
5
* For the licensing terms see doc/COPYING.
6
* For documentation see http://mpp.mpg.de/bat
7
*/
8
9
// ---------------------------------------------------------
10
11
#ifndef __BCMVCPHYSICSMODEL__H
12
#define __BCMVCPHYSICSMODEL__H
13
14
#include "BCMVCombination.h"
15
16
// ---------------------------------------------------------
17
class
BCMVCPhysicsModel
:
public
BCMVCombination
18
{
19
public
:
20
21
// Constructor
22
BCMVCPhysicsModel
();
23
24
// Destructor
25
~
BCMVCPhysicsModel
();
26
27
// Add a parameter
28
// name: the name of the parameter
29
// min: the minimum value of the parameter
30
// max: the maximum value of the parameter
31
void
AddObservable(std::string name,
double
min,
double
max);
32
33
// return a value for an observable
34
// index: the index of the variable
35
// parameters: the physics parameters
36
virtual
double
CalculateObservable(
int
index,
const
std::vector<double> ¶meters)
37
{ (void) index;
// suppress compiler warning about unused parameters
38
(void) parameters;
// suppress compiler warning about unused parameters
39
return
0; };
40
41
// BAT methods
42
43
// the log of the likelihood
44
double
LogLikelihood
(
const
std::vector<double> ¶meters);
45
46
private
:
47
48
};
49
// ---------------------------------------------------------
50
51
#endif
52
BCMVCPhysicsModel::LogLikelihood
double LogLikelihood(const std::vector< double > ¶meters)
Definition:
BCMVCPhysicsModel.cxx:29
BCMVCombination
Definition:
BCMVCombination.h:26
BCMVCPhysicsModel
Definition:
BCMVCPhysicsModel.h:17
models
mvc
BCMVCPhysicsModel.h
Generated on Wed Nov 19 2014 16:14:03 for BAT by
1.8.6