|
BayesianAnalysisToolkit
0.9.3
|
A class representing a parameter of a model. More...
#include <BCParameter.h>
Public Member Functions | |
Constructors and destructors | |
| BCParameter () | |
| BCParameter (const char *name, double lowerlimit, double upperlimit, const char *latexname="") | |
Member functions (get) | |
| const std::string & | GetName () const |
| const std::string & | GetLatexName () const |
| double | GetLowerLimit () const |
| double | GetUpperLimit () const |
| double | GetRangeWidth () const |
| bool | FillHistograms () const |
| bool | Fixed () const |
| double | GetFixedValue () const |
| unsigned | GetNbins () const |
Member functions (set) | |
| void | SetName (const char *name) |
| void | SetLatexName (const char *latex_name) |
| void | SetLowerLimit (double limit=0) |
| void | SetUpperLimit (double limit=1) |
| void | SetLimits (double lowerlimit=0, double upperlimit=1) |
| void | Fix (double value) |
| void | Unfix () |
| void | FillHistograms (bool flag) |
| void | SetNbins (unsigned nbins) |
Member functions (miscellaneous methods) | |
| bool | IsAtLimit (double value) const |
| bool | IsValid (double value) const |
| void | PrintSummary () const |
Private Attributes | |
| std::string | fName |
| The name of the parameter. More... | |
| double | fLowerLimit |
| The lower limit of the parameter value. More... | |
| double | fUpperLimit |
| The upper limit of the parameter value. More... | |
| std::string | fLatexName |
| The latex name of the parameter. More... | |
| bool | fFixed |
| Flag to fix parameter; useful for example, for integration. More... | |
| double | fFixedValue |
| The fixed value of the parameter. More... | |
| bool | fFillHistograms |
| Flag to store MCMC samples in histograms. More... | |
| unsigned | fNbins |
| The number of equal-size bins used in histograms involving this parameter. More... | |
A class representing a parameter of a model.
Definition at line 28 of file BCParameter.h.
| BCParameter::BCParameter | ( | ) |
| BCParameter::BCParameter | ( | const char * | name, |
| double | lowerlimit, | ||
| double | upperlimit, | ||
| const char * | latexname = "" |
||
| ) |
A constructor.
| name | The name of the parameter. |
| lowerlimit | The lower limit of the parameter values. |
| upperlimit | The upper limit of the parameter values. |
| latexname | The latex name of the parameter used in axis labeling. |
Definition at line 34 of file BCParameter.cxx.
|
inline |
Definition at line 80 of file BCParameter.h.
|
inline |
Definition at line 133 of file BCParameter.h.
|
inline |
Definition at line 124 of file BCParameter.h.
|
inline |
Definition at line 83 of file BCParameter.h.
|
inline |
Definition at line 86 of file BCParameter.h.
|
inline |
Returns latex name if set, else identical to GetName().
Definition at line 60 of file BCParameter.h.
|
inline |
|
inline |
|
inline |
Definition at line 89 of file BCParameter.h.
|
inline |
Returns the range width of the parameter values. It is always a positive value.
Definition at line 77 of file BCParameter.h.
|
inline |
| bool BCParameter::IsAtLimit | ( | double | value) | const |
Returns true if the value is at a parameter limit.
Definition at line 58 of file BCParameter.cxx.
|
inline |
Definition at line 148 of file BCParameter.h.
| void BCParameter::PrintSummary | ( | ) | const |
|
inline |
Definition at line 102 of file BCParameter.h.
|
inline |
Set the limits of the parameter values.
| lowerlimit | The lower limit of the parameter values. |
| upperlimit | The upper limit of the parameter values. |
Definition at line 121 of file BCParameter.h.
|
inline |
Set the lower limit of the parameter values.
| limit | The lower limit of the parameter values. |
Definition at line 108 of file BCParameter.h.
|
inline |
|
inline |
Definition at line 136 of file BCParameter.h.
|
inline |
Set the upper limit of the parameter values.
| limit | The upper limit of the parameter values. |
Definition at line 114 of file BCParameter.h.
|
inline |
Definition at line 130 of file BCParameter.h.
|
private |
Flag to store MCMC samples in histograms.
Definition at line 177 of file BCParameter.h.
|
private |
Flag to fix parameter; useful for example, for integration.
Definition at line 171 of file BCParameter.h.
|
private |
The fixed value of the parameter.
Definition at line 174 of file BCParameter.h.
|
private |
The latex name of the parameter.
Definition at line 168 of file BCParameter.h.
|
private |
The lower limit of the parameter value.
Definition at line 162 of file BCParameter.h.
|
private |
The name of the parameter.
Definition at line 159 of file BCParameter.h.
|
private |
The number of equal-size bins used in histograms involving this parameter.
Definition at line 180 of file BCParameter.h.
|
private |
The upper limit of the parameter value.
Definition at line 165 of file BCParameter.h.
1.8.4