BIE::StateCache Class Reference

StateCache maintains a list of MCMC states and allows sampling and searching on the list by mixture subspace. More...

#include <Ensemble.h>

Inheritance diagram for BIE::StateCache:
Collaboration diagram for BIE::StateCache:

List of all members.

Public Member Functions

 StateCache (int nburn, deque< StateData > &states, int keypos=0)
 Constructor: Initialize with a deque of states.
 StateCache (const StateCache &)
 Copy constructor.
 ~StateCache ()
 Destructor.
vector< double > Mean (int m)
 Mean per subspace.
vector< double > Sample (int m)
 Sample a state at random from the list for a given subspace.
double logPDF (State &P)
 Return the probability of the state with state vector P.
unsigned size ()
 Return the size of the cache.

Friends

class boost::serialization::access


Detailed Description

StateCache maintains a list of MCMC states and allows sampling and searching on the list by mixture subspace.
The documentation for this class was generated from the following file:

Send suggestions, questions, and feedback to WEINBERG at ASTRO dot UMASS dot EDU.
Documentation generated at Fri Mar 26 00:35:12 2010 by doxygen