Alternaria
fit cylinders and ellipsoids to fungus
Sampler_diffusion_move Class Reference

#include <sampler.h>

Inheritance diagram for Sampler_diffusion_move:
Collaboration diagram for Sampler_diffusion_move:

List of all members.

Public Member Functions

 Sampler_diffusion_move (const char *name, double prob) throw (jwscxx::base::Arg_error)
 Constructs a Sampler_diffusion_move.
virtual ~Sampler_diffusion_move ()
 Deletes a Sampler_diffusion_move.
double get_prob () const
 Returns the probability of this move.
void set_prob (double prob) throw (jwscxx::base::Arg_error)
 Sets the probability of this move.

Protected Attributes

uint32_t num_accepted
 Number of times run and accepted.
uint32_t num_attempts
 Number of times run and accepted or rejected.
double prob
 Probability of this move in a Sampler.

Detailed Description

MCMC Sampler move that modifies the value of a model parameter.

Definition at line 199 of file sampler.h.


Constructor & Destructor Documentation

Sampler_diffusion_move::Sampler_diffusion_move ( const char *  name,
double  prob 
) throw (jwscxx::base::Arg_error)

Constructs a Sampler_diffusion_move.

Parameters:
nameName of the move.
probProbability of the move.
Exceptions:
jwscxx::base::Arg_errorProbability must be in [0,1].
Note:
Use Sampler::normalize_move_probs to normalize all the move probabilities so they sum to 1.

Definition at line 152 of file sampler.cpp.

virtual Sampler_diffusion_move::~Sampler_diffusion_move ( ) [inline, virtual]

Deletes a Sampler_diffusion_move.

Definition at line 209 of file sampler.h.


Member Function Documentation

double Sampler_diffusion_move::get_prob ( ) const [inline, virtual]

Returns the probability of this move.

Implements Sampler_move.

Definition at line 213 of file sampler.h.

void Sampler_diffusion_move::set_prob ( double  prob) throw (jwscxx::base::Arg_error) [virtual]

Sets the probability of this move.

Parameters:
probNew probability of the move.
Exceptions:
jwscxx::base::Arg_errorValue must be in [0,1].

Implements Sampler_move.

Definition at line 167 of file sampler.cpp.


Member Data Documentation

Number of times run and accepted.

Definition at line 224 of file sampler.h.

Number of times run and accepted or rejected.

Definition at line 227 of file sampler.h.

double Sampler_diffusion_move::prob [protected]

Probability of this move in a Sampler.

Definition at line 230 of file sampler.h.


The documentation for this class was generated from the following files: