Alternaria
fit cylinders and ellipsoids to fungus
Imaging_bg_move Class Reference

#include <imaging_moves.h>

Inheritance diagram for Imaging_bg_move:
Collaboration diagram for Imaging_bg_move:

List of all members.

Public Member Functions

 Imaging_bg_move (const char *name, double prob=1.0) throw (jwscxx::base::Arg_error)
 Constructs an Imaging_bg_move.
bool run (Sampler_move_parameters *params) throw (jwscxx::base::Exception)
 Runs this move and either accepts or rejects.
const std::ostringstream & get_info (Sampler_move_parameters *params)
 Returns information about the current state of the background from the most recent run of this move.
const std::ostringstream & get_proposal_info (Sampler_move_parameters *params)
 Returns information about the state of the proposed background from the most recent run of this move.

Detailed Description

MCMC Sampler move that propose changes to Imaging_model::bg.

Definition at line 64 of file imaging_moves.h.


Constructor & Destructor Documentation

Imaging_bg_move::Imaging_bg_move ( const char *  name,
double  prob = 1.0 
) throw (jwscxx::base::Arg_error) [inline]

Constructs an Imaging_bg_move.

Definition at line 69 of file imaging_moves.h.


Member Function Documentation

bool Imaging_bg_move::run ( Sampler_move_parameters params) throw (jwscxx::base::Exception) [virtual]

Runs this move and either accepts or rejects.

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

Implements Sampler_move.

Definition at line 77 of file imaging_moves.cpp.

const std::ostringstream & Imaging_bg_move::get_info ( Sampler_move_parameters params) [virtual]

Returns information about the current state of the background from the most recent run of this move.

Parameters:
paramsParameters for the move.
Returns:
Information about the background.

Implements Sampler_move.

Definition at line 124 of file imaging_moves.cpp.

const std::ostringstream & Imaging_bg_move::get_proposal_info ( Sampler_move_parameters params) [virtual]

Returns information about the state of the proposed background from the most recent run of this move.

Parameters:
paramsParameters for the move.
Returns:
Information about the proposed background.

Implements Sampler_move.

Definition at line 142 of file imaging_moves.cpp.


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