Abstract class for a model.
More...
#include <model.h>
Abstract class for a model.
Definition at line 361 of file model.h.
Definition at line 364 of file model.h.
364 :
r(
new TRandom3(0)){}
| virtual Model::~Model |
( |
| ) |
|
|
inlinevirtual |
| virtual parameters Model::generateparameters |
( |
int |
max = 0 | ) |
const |
|
pure virtual |
| double Model::likelihood |
( |
const parameters & |
p, |
|
|
bool |
check = 1, |
|
|
int |
max = 0 |
|
) |
| const |
|
inline |
calculates the probability of getting all the experimental measures if the model describes the reality
- Parameters
-
| p | vector with the values of the free parameters |
Definition at line 374 of file model.h.
375 if(
veto(p,max) && check)
return 0;
377 if(total<-1000)
return 0;
double loglike(const parameters &p, bool check=1, int max=0) const
virtual int veto(const parameters &p, int max=0) const
| double Model::loglike |
( |
const parameters & |
p, |
|
|
bool |
check = 1, |
|
|
int |
max = 0 |
|
) |
| const |
|
inline |
Definition at line 381 of file model.h.
Referenced by main().
382 if(
veto(p,max) && check)
return -1000;
387 for(const_iterator i=begin();i!=end();i++) {
390 total+=i->loglikelihood(pp);
393 cout<<n<<e.what()<<endl;
virtual parameters getlist(const parameters &p) const =0
virtual int veto(const parameters &p, int max=0) const
| virtual int Model::veto |
( |
const parameters & |
p, |
|
|
int |
max = 0 |
|
) |
| const |
|
inlinevirtual |
The documentation for this class was generated from the following file: