#include <MCMC.h>
Inheritance diagram for StepBase:


Public Member Functions | |
| StepBase (ParameterBase *parameter, unsigned long accept, unsigned long ct, const double w, const double m, const double lowBound, const double highBound) | |
| virtual | ~StepBase (void) |
| virtual void | DoStep (void)=0 |
| virtual void | SetBounds (double low, double high)=0 |
| virtual void | SetW (double w)=0 |
| virtual void | SetM (int m)=0 |
| const boost::any | aValue (void) const |
| const double | Value (void) const |
| const int | iValue (void) const |
| const std::vector< double > | dVecValue (void) const |
| const std::vector< int > | iVecValue (void) const |
| int | accept (void) const |
| std::string | Label (void) const |
| ParameterBase * | Par (void) const |
| void | ResetAccept (void) |
| void | SetLabel (const std::string &label) |
Protected Attributes | |
| ParameterBase * | par_ |
| holds the data and methods | |
| unsigned long | accept_ |
| acceptance count for M-H | |
| unsigned long | ct_ |
| number of choices so far | |
| double | w_ |
| slice width | |
| double | m_ |
| maximum number of steps in slice sampler | |
| double | lowBound_ |
| smallest value of parameter allowed | |
| double | highBound_ |
| largest value of parameter allowed | |
Definition at line 205 of file MCMC.h.
| StepBase::StepBase | ( | ParameterBase * | parameter, | |
| unsigned long | accept, | |||
| unsigned long | ct, | |||
| const double | w, | |||
| const double | m, | |||
| const double | lowBound, | |||
| const double | highBound | |||
| ) |
| virtual void StepBase::DoStep | ( | void | ) | [pure virtual] |
Select new parameter from sampler
Implemented in MetroStepT< T >, AdaptMetroStepT< T >, and SliceStep.
| virtual void StepBase::SetBounds | ( | double | low, | |
| double | high | |||
| ) | [pure virtual] |
Set bounds on parameter value
| low | lower bound | |
| high | upper bound |
Implemented in SliceStep.
| virtual void StepBase::SetW | ( | double | w | ) | [pure virtual] |
| virtual void StepBase::SetM | ( | int | m | ) | [pure virtual] |
Set maximum number of steps in slice sampler
| m | maximum number of steps allowed |
Implemented in SliceStep.
| const boost::any StepBase::aValue | ( | void | ) | const |
Returns parameter value of the current step
Definition at line 490 of file MCMC.cpp.
References par_, and ParameterBase::Value().
| const double StepBase::Value | ( | void | ) | const |
Returns parameter value of the current step
Assumes value stored as double
Definition at line 499 of file MCMC.cpp.
References par_, and ParameterT< T >::Value().
| const int StepBase::iValue | ( | void | ) | const |
Returns parameter value of the current step
Assumes value stored as integer
Definition at line 509 of file MCMC.cpp.
References par_, and ParameterT< T >::Value().
| const vector< double > StepBase::dVecValue | ( | void | ) | const |
Returns parameter value of the current step
Assumes value stored as vector<double>
Definition at line 519 of file MCMC.cpp.
References par_, and ParameterT< T >::Value().
| const vector< int > StepBase::iVecValue | ( | void | ) | const |
Returns parameter value of the current step
Assumes value stored as vector<int>
Definition at line 529 of file MCMC.cpp.
References par_, and ParameterT< T >::Value().
| int StepBase::accept | ( | void | ) | const |
| std::string StepBase::Label | ( | void | ) | const |
Label of parameter associated with this step
Definition at line 458 of file MCMC.cpp.
References ParameterBase::Label(), and par_.
| ParameterBase * StepBase::Par | ( | void | ) | const |
| void StepBase::ResetAccept | ( | void | ) |
| void StepBase::SetLabel | ( | const std::string & | label | ) |
Set the label associated with this step
| label | the label string |
Definition at line 481 of file MCMC.cpp.
References par_, and ParameterBase::SetLabel().
1.5.1