MetroStepT< T > Class Template Reference

Implements Metropolis-Hastings step for a parameter. More...

#include <MCMC.h>

Inheritance diagram for MetroStepT< T >:

Inheritance graph
[legend]
Collaboration diagram for MetroStepT< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MetroStepT (ParameterT< T > *parameter)

Protected Member Functions

bool Accept (T &newX, T &oldX)
void Assign (const T &x)
virtual void DoStep (void)

Protected Attributes

ParameterT< T > * met_
 pointer to parameter associated with this step

Detailed Description

template<typename T>
class MetroStepT< T >

Implements Metropolis-Hastings step for a parameter.

Definition at line 303 of file MCMC.h.


Constructor & Destructor Documentation

template<typename T>
MetroStepT< T >::MetroStepT ( ParameterT< T > *  parameter  )  [inline, explicit]

Constructor

Parameters:
parameter Pointer to the parameter associated with this step

Definition at line 309 of file MCMC.h.


Member Function Documentation

template<typename T>
bool MetroStepT< T >::Accept ( T &  newX,
T &  oldX 
) [inline, protected]

Accept or reject

Parameters:
newX Proposed value
oldX Old value
Returns:
true for accept

false for reject

Definition at line 324 of file MCMC.h.

References MetroStepT< T >::met_.

Referenced by AdaptMetroStepT< T >::DoStep(), and MetroStepT< T >::DoStep().

template<typename T>
void MetroStepT< T >::Assign ( const T &  x  )  [inline, protected]

Assign value to parameter associated with this step

Parameters:
x The value to assign

Definition at line 342 of file MCMC.h.

References MetroStepT< T >::met_.

template<typename T>
virtual void MetroStepT< T >::DoStep ( void   )  [inline, protected, virtual]

Get a new value from an M-H step

Implements StepBase.

Reimplemented in AdaptMetroStepT< T >.

Definition at line 348 of file MCMC.h.

References MetroStepT< T >::Accept(), and MetroStepT< T >::met_.


The documentation for this class was generated from the following file:
Generated on Tue Mar 27 16:03:49 2007 for mcmc by  doxygen 1.5.1