BayesianAnalysisToolkit
0.9.3
Main Page
Namespaces
Classes
Files
File List
File Members
models
mvc
BCMVCPhysicsModel.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2007-2013, 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
Generated by
1.8.4