Alternaria
fit cylinders and ellipsoids to fungus
Structure_rotate_move Class Reference

#include <alternaria_moves.h>

Inheritance diagram for Structure_rotate_move:
Collaboration diagram for Structure_rotate_move:

List of all members.

Public Member Functions

 Structure_rotate_move (const char *name, double prob=1.0) throw (jwscxx::base::Arg_error)
 Constructs a Structure_rotate_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 rotated Structure 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 rotated Structure from the most recent run of this move.

Detailed Description

MCMC Sampler move that proposes resizing a random Structure.

Definition at line 523 of file alternaria_moves.h.


Constructor & Destructor Documentation

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

Constructs a Structure_rotate_move.

Definition at line 528 of file alternaria_moves.h.


Member Function Documentation

bool Structure_rotate_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 2951 of file alternaria_moves.cpp.

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

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

Parameters:
paramsParameters for the move.
Returns:
Information about the Structure::theta and Structure::psi.

Implements Sampler_move.

Definition at line 3048 of file alternaria_moves.cpp.

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

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

Parameters:
paramsParameters for the move.
Returns:
Information about the proposed Structure::theta and Structure::psi.

Implements Sampler_move.

Definition at line 3063 of file alternaria_moves.cpp.


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