Alternaria
fit cylinders and ellipsoids to fungus
Apical_hypha_birth_death_move Class Reference

#include <alternaria_moves.h>

Inheritance diagram for Apical_hypha_birth_death_move:
Collaboration diagram for Apical_hypha_birth_death_move:

List of all members.

Public Member Functions

 Apical_hypha_birth_death_move (const char *birth_name, const char *death_name, double birth_prob=1.0, double death_prob=1.0) throw (jwscxx::base::Arg_error)
 Constructs an Apical_hypha_birth_death_move.
bool run_1 (Sampler_move_parameters *params) throw (jwscxx::base::Exception)
 Runs the birth jump move and either accepts or rejects.
bool run_2 (Sampler_move_parameters *params) throw (jwscxx::base::Exception)
 Runs the death jump move and either accepts or rejects.

Detailed Description

MCMC Sampler move that proposes adding or removing an Apical_hypha in an Alternaria_model.

Definition at line 65 of file alternaria_moves.h.


Constructor & Destructor Documentation

Apical_hypha_birth_death_move::Apical_hypha_birth_death_move ( const char *  birth_name,
const char *  death_name,
double  birth_prob = 1.0,
double  death_prob = 1.0 
) throw (jwscxx::base::Arg_error) [inline]

Constructs an Apical_hypha_birth_death_move.

Definition at line 71 of file alternaria_moves.h.


Member Function Documentation

bool Apical_hypha_birth_death_move::run_1 ( Sampler_move_parameters params) throw (jwscxx::base::Exception) [virtual]

Runs the birth jump move and either accepts or rejects.

Parameters:
paramsParameters for the move.
Returns:
If the proposal is accepted, 1; otherwise 0.

Implements Sampler_jump_move.

Definition at line 83 of file alternaria_moves.cpp.

bool Apical_hypha_birth_death_move::run_2 ( Sampler_move_parameters params) throw (jwscxx::base::Exception) [virtual]

Runs the death jump move and either accepts or rejects.

Parameters:
paramsParameters for the move.
Returns:
If the proposal is accepted, 1; otherwise 0.

Implements Sampler_jump_move.

Definition at line 168 of file alternaria_moves.cpp.


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