BIE::CountConverge Class Reference

A simple implementation of Converge Counts number of interations and cumulated statistics based on SampleDistribution class provided on instantiation. More...

#include <CountConverge.h>

Inheritance diagram for BIE::CountConverge:
Collaboration diagram for BIE::CountConverge:

List of all members.

Public Member Functions

virtual CountConvergeNew (int m, Ensemble *d, string id="")
 Factory method.
virtual bool Converged ()
 True if converged.
virtual bool AccumData (double value, State &state)
 Cumulates data and counts the interations.
virtual bool GetLast (double &value, State &state)
 Get the last value and state.
void ComputeDistribution ()
 Access to ComputDistribution class.
void setNmax (int n)
 Change the max count value.
void setNburn (int n)
 Set number of iterations before converge is checked.
int ConvergedIndex ()
 Return the number of pre-burn-in states to discard.
int BurnIn ()
 Return the number of pre-burn-in states to discard.
CountConvergeNew ()
 Clone me.
Constructors
 CountConverge (int m, Ensemble *d)
 Constructor.
 CountConverge (int m, Ensemble *d, int nburn)
 Constructor.
double PDF (State &x)
 Required Distribution members.
double logPDF (State &x)
 Log of differential distribution function P(x).
vector< double > lower (void)
 Lower bound on distribution (in each dimension).
vector< double > upper (void)
 Upper bound on distribution (in each dimension).
vector< double > Mean ()
 Return mean of distribution (mulitvariate).
vector< double > StdDev ()
 Return standard deviation of distribution (mulitvariate).
vector< double > Moments (int m)
 Return specifided momemnt of distribution (mulitvariate).
vector< double > Sample ()
 Return random variate from distribution.

Friends

class boost::serialization::access


Detailed Description

A simple implementation of Converge Counts number of interations and cumulated statistics based on SampleDistribution class provided on instantiation.

Member Function Documentation

virtual bool BIE::CountConverge::AccumData ( double  value,
State state 
) [inline, virtual]

Cumulates data and counts the interations.

Cumulates data (overridden in SampleDistribution)

Reimplemented from BIE::Converge.

Here is the call graph for this function:

void BIE::CountConverge::ComputeDistribution ( void   )  [inline, virtual]

Access to ComputDistribution class.

Will be called by provided helper class as needed

Reimplemented from BIE::SampleDistribution.

Here is the call graph for this function:


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