Chain Class Reference
Define, access and manipulate the state of a Markov
Chain.
More...
#include <Chain.h>
List of all members.
|
Public Member Functions |
|
| ~Chain () |
| | Destructor.
|
|
void | AcceptState () |
| | Accept the trial state.
|
|
State & | GetState0 () |
| | Return the state vector for the default (current state).
|
|
State & | GetState1 () |
| | Return the state vector for the trial state.
|
|
void | BroadcastChain () |
| | Send chain state to all nodes.
|
|
void | SendChain (int rank) |
| | Send chain state to node=rank.
|
|
void | RecvChain (int rank) |
| | Receive chain state from node=rank.
|
|
void | OrderOn (int rank) |
| | Set automatic ordering.
|
|
void | Order1 () |
| | Order the mixture components trial state on automatic field.
|
|
void | Order0 () |
| | Order the mixture components final state on automatic field.
|
|
void | Order1 (int rank) |
| | Order the mixture components trial state on specified field.
|
|
void | Order0 (int rank) |
| | Order the mixture components final state on specified field.
|
|
void | Logging (const string &str) |
| | Set state logging.
|
|
void | WriteLog () |
| | Write to log.
|
|
| | Chain () |
| | Constructors.
|
|
| Chain (int M, int Ndim) |
| | Specify mixture number and component dimension.
|
|
| Chain (int M, int Ndim, bool ordering, int iorder) |
| | Specify mixture number, component dimension and ordering.
|
|
| Chain (const Chain &) |
| | Copy constructor.
|
|
Chain & | operator= (const Chain &) |
| | Assignement operator.
|
|
| void | AssignState0 (const Chain &ch) |
| | Assign default chain value.
|
|
void | AssignState0 (const State &s) |
| | Assign from a state.
|
|
| void | AssignState1 (const Chain &ch) |
| | Define trial chaine value.
|
|
void | AssignState1 (const State &s) |
| | Assign from a state.
|
|
| void | PrintStats (ostream &) |
| | Print chain state.
|
|
void | PrintStats () |
| | Print statistics to stdout.
|
|
void | PrintState (ostream &) |
| | Print chain state to a provided stream.
|
|
void | PrintState () |
| | Print chain state to stdout.
|
|
void | PrintState1 (ostream &) |
| | Print chain "trial" state to a provided stream.
|
|
void | PrintState1 () |
| | Print chain "trial" state to stdout.
|
Public Attributes |
|
int | indx |
| | Level index.
|
|
double | beta |
| | Temperature level (1/KT).
|
|
double | factor |
| | The width factor (for a Metropolis-Hastings proposal) for this beta.
|
|
double | weight |
| | Particle weight.
|
|
| double | like_value |
| | Values of default state.
|
|
double | prior_value |
| | Prior.
|
|
double | value |
| | Posterior.
|
|
| double | like_value1 |
| | Values of trial state.
|
|
double | prior_value1 |
| | Prior.
|
|
double | value1 |
| | Posterior.
|
|
| int | Mcur |
| | Weights and values of default and trial states.
|
|
int | Mcur1 |
|
int | M |
|
int | Ndim |
|
int | owner |
| | Which node "controls" this chain.
|
| vector< int > | born |
| | State diagnostics for variable component mixtures.
|
|
vector< int > | died |
|
vector< int > | stat |
| | Update statistics.
|
|
vector< double > | wght |
| | Weights.
|
|
vector< double > | wght1 |
|
vector< double > | wghtT |
|
vector< vector< double > > | phi |
| | Parameter vectors.
|
|
vector< vector< double > > | phi1 |
|
vector< vector< double > > | phiT |
Friends |
|
class | boost::serialization::access |
Detailed Description
Define, access and manipulate the state of a Markov
Chain.
Contains all state and diagnostic info for the chain
Constructor & Destructor Documentation
Constructors.
Null Constructor
Member Function Documentation
| void Chain::AssignState0 |
( |
const Chain & |
ch |
) |
|
Assign default chain value.
Assign from another chain
| void Chain::AssignState1 |
( |
const Chain & |
ch |
) |
|
Define trial chaine value.
Assign from another chain
| void Chain::PrintStats |
( |
ostream & |
|
) |
|
Print chain state.
Print statistics to a provided stream
Member Data Documentation
Values of default state.
Likelihood
Values of trial state.
Likelihood
Weights and values of default and trial states.
Number of components and dimension
State diagnostics for variable component mixtures.
0=last step, 1=total, 2=last step (trial), 3=total (trial)
The documentation for this class was generated from the following file:
- /home/weinberg/src/BIE/include/Chain.h