Convergence class based on multiple chain analyses as desribed in Gelman and Rubin (1992).
|
Public Member Functions |
| | GelmanRubinConverge (int m, Ensemble *d, string id) |
| | The parameter m determines the "burn-in" handling procedure.
|
|
virtual GelmanRubinConverge * | New (int m, Ensemble *d, string id) |
| | Factory method.
|
|
virtual bool | Converged () |
| | True if converged.
|
|
virtual bool | IsParallel () |
| | This is a parallel chain convergence test.
|
|
void | setNskip (int n) |
| | Set number of iterations to skip between convergence tests.
|
|
void | setNoutlier (int n) |
| | Set number of iterations before performing an outlier test.
|
|
void | setMaxout (int n) |
| | Set number maximum number of outliers that can be masked.
|
|
void | setNgood (int n) |
| | Set number of states to sample after convergence.
|
|
void | Quiet () |
| | Suppress the diagnostic output.
|
| void | setPoffset (double z) |
| | Set the minimum log probability offset from the maximally probably state for an outlier to be flagged in addition Grubbs' test.
|
|
int | ConvergedIndex () |
| | Return the number of pre-burn-in states to discard from Ensemble.
|
|
int | BurnIn () |
| | Return the number of pre-burn-in states to discard from Ensemble.
|
|
void | setRhatMax (double r) |
| | Set correlation coefficient threshold (default: 1.2).
|
|
void | setAlpha (double a) |
| | Set outlier detection confidence: 1 - alpha (default: 0, means off).
|
|
virtual bool | AccumData (vector< double > &values, vector< State > &states) |
| | Cumulates data (overridden in SampleDistribution).
|
|
virtual bool | GetLast (vector< double > &values, vector< State > &states) |
| | Return last state.
|
| void | ComputeDistribution () |
| | Access to ComputDistribution class.
|
|
GelmanRubinConverge * | New () |
| | Clone me.
|
|
|
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.
|
Static Public Member Functions |
|
static void | setMaxK (int n) |
| | Set the maximum number of states to retain if maxit=0 (default: 100000).
|
Static Public Attributes |
|
|
static unsigned | ngood |
| | Number of iterations after convergence (default: int=1000).
|
|
static unsigned | nskip |
| | Number of iterations to skip betwen tests (default: int=100).
|
|
static double | alpha |
| | Outlier confidence value 1 - alpha (default: double=0.05).
|
|
static int | maxoutlier |
| | Maximum number of allowed outliers (default: int=6).
|
|
static int | noutlier |
| | Number of steps before outlier test (default: int=500).
|
|
static double | rtol |
| | Tolerance for Rhat (default: double=1.2).
|
|
static bool | verbose |
| | Diagnostic files (default: bool=true).
|
|
static double | poffset |
| | Log of offset in peak probability for outliers (default: -30.0).
|
|
static bool | debug |
| | Additional debug output (default: bool=false).
|
|
static int | maxkp |
| | Maximum number of states to keep if maxit=0 (default: 100000).
|
Friends |
|
class | boost::serialization::access |
Convergence class based on multiple chain analyses as desribed in Gelman and Rubin (1992).
| BIE::GelmanRubinConverge::GelmanRubinConverge |
( |
int |
m, |
|
|
Ensemble * |
d, |
|
|
string |
id | |
|
) |
| | |