Alternaria
fit cylinders and ellipsoids to fungus
|
#include <sampler.h>
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. |
MCMC Sampler move that modifies the value of a model parameter.
Sampler_diffusion_move::Sampler_diffusion_move | ( | const char * | name, |
double | prob | ||
) | throw (jwscxx::base::Arg_error) |
Constructs a Sampler_diffusion_move.
name | Name of the move. |
prob | Probability of the move. |
jwscxx::base::Arg_error | Probability must be in [0,1]. |
Definition at line 152 of file sampler.cpp.
virtual Sampler_diffusion_move::~Sampler_diffusion_move | ( | ) | [inline, virtual] |
Deletes a Sampler_diffusion_move.
double Sampler_diffusion_move::get_prob | ( | ) | const [inline, virtual] |
Returns the probability of this move.
Implements Sampler_move.
void Sampler_diffusion_move::set_prob | ( | double | prob | ) | throw (jwscxx::base::Arg_error) [virtual] |
Sets the probability of this move.
prob | New probability of the move. |
jwscxx::base::Arg_error | Value must be in [0,1]. |
Implements Sampler_move.
Definition at line 167 of file sampler.cpp.
uint32_t Sampler_diffusion_move::num_accepted [protected] |
uint32_t Sampler_diffusion_move::num_attempts [protected] |
double Sampler_diffusion_move::prob [protected] |