BCModel.h
150 void SetKnowledgeUpdateDrawingStyle(BCAux::BCKnowledgeUpdateDrawingStyle style = BCAux::kKnowledgeUpdateDefaultStyle);
251 double HessianMatrixElement(unsigned index1, unsigned index2, const std::vector<double>& point);
270 virtual unsigned PrintKnowledgeUpdatePlots(const std::string& filename, unsigned hdiv = 1, unsigned vdiv = 1, bool call_likelihood = false);
278 /* * @param call_likelihood whether to call model likelihood function to prepare for calculating observables */
280 /* virtual unsigned PrintPriors(const std::string& filename, unsigned hdiv = 1, unsigned vdiv = 1, bool call_likelihood = false); */
virtual BCPriorModel * GetPriorModel(bool prepare=true, bool call_likelihood=false)
Definition: BCModel.cxx:223
virtual double LogLikelihood(const std::vector< double > ¶ms)=0
Calculates natural logarithm of the likelihood.
BCH1D fBCH1DPosteriorDrawingOptions
knowledge update plot 1D posterior options.
Definition: BCModel.h:307
virtual double LogProbability(const std::vector< double > ¶meters)
Returns natural logarithm of the a posteriori probability given a set of parameter values...
Definition: BCModel.cxx:105
virtual double LogEval(const std::vector< double > ¶meters)
Overloaded function to evaluate integral.
Definition: BCModel.h:236
bool fDrawPriorFirst
flag for ordering of drawing of prior and posterior in knowledge update plots.
Definition: BCModel.h:315
virtual double ProbabilityNN(const std::vector< double > ¶ms)
Returns the likelihood times prior probability given a set of parameter values.
Definition: BCModel.h:199
virtual double Eval(const std::vector< double > ¶meters)
Overloaded function to evaluate integral.
Definition: BCModel.h:231
void PrintHessianMatrix(std::vector< double > parameters)
Prints matrix elements of the Hessian matrix.
Definition: BCModel.cxx:195
void PrintShortFitSummary()
Prints a short summary of the fit results on the screen.
Definition: BCModel.cxx:178
void SetDrawPriorFirst(bool b=true)
Set drawing of prior first (true) or posterior first (false) for knowledge update plots...
Definition: BCModel.h:155
virtual double LogProbabilityNN(const std::vector< double > ¶meters)
Returns the natural logarithm of likelihood times prior probability given a set of parameter values...
Definition: BCModel.cxx:88
double HessianMatrixElement(unsigned index1, unsigned index2, const std::vector< double > &point)
Calculates the matrix element of the Hessian matrix.
Definition: BCModel.cxx:136
virtual unsigned int GetNFreeParameters() const
Definition: BCParameterSet.h:48
virtual double GetLogPrior(const std::vector< double > ¶meters) const
Get log of prior; assumes independent priors given for all parameters in set.
Definition: BCParameterSet.cxx:55
virtual void InitializeMarkovChainTree(bool replacetree=false, bool replacefile=false)
Initialize the trees containing the Markov chains and parameter info.
Definition: BCModel.cxx:117
BCH2D fBCH2DPosteriorDrawingOptions
knowledge update plot 2D posterior options.
Definition: BCModel.h:311
BCKnowledgeUpdateDrawingStyle
An enumerator for the knowledge update drawing style presets.
Definition: BCAux.h:119
virtual unsigned PrintKnowledgeUpdatePlots(const std::string &filename, unsigned hdiv=1, unsigned vdiv=1, bool call_likelihood=false)
Print a comparison of the prior knowledge to the posterior knowledge for each parameter.
Definition: BCModel.cxx:335
virtual double LogAPrioriProbability(const std::vector< double > ¶meters)
Returns natural logarithm of the prior probability.
Definition: BCModel.h:178
virtual double APrioriProbability(const std::vector< double > ¶meters)
Returns the prior probability.
Definition: BCModel.h:168
BCPriorModel * fPriorModel
BCPriorModel object for drawing of knowledge update, and saving of samples according to prior...
Definition: BCModel.h:295
virtual double SamplingFunction(const std::vector< double > ¶meters)
Sampling function used for importance sampling.
Definition: BCModel.cxx:127
BCH2D & GetBCH2DPosteriorDrawingOptions()
Definition: BCModel.h:128
void SetKnowledgeUpdateDrawingStyle(BCAux::BCKnowledgeUpdateDrawingStyle style=BCAux::kKnowledgeUpdateDefaultStyle)
Set default drawing options for knowledge update plots.
Definition: BCModel.cxx:484
virtual double Probability(const std::vector< double > ¶meters)
Returns the a posteriori probability given a set of parameter values.
Definition: BCModel.h:213
virtual BCH1D GetPrior(unsigned index)
Get prior of a variable as a BCH1D.
Definition: BCModel.cxx:234
virtual double Likelihood(const std::vector< double > ¶ms)
Returns the likelihood.
Definition: BCModel.h:185
BCH1D & GetBCH1DPosteriorDrawingOptions()
Definition: BCModel.h:123