SedSat3 1.1.6
Sediment Source Apportionment Tool - Advanced statistical methods for environmental pollution research
Loading...
Searching...
No Matches
mcmcdiagnostics Namespace Reference

Classes

struct  Diagnostics

Functions

std::vector< double > Autocovariance (const std::vector< double > &x)
 Autocovariance of x at lags 0..n-1 (divided by n), computed with an FFT.
Diagnostics Diagnose (const std::vector< std::vector< double > > &chains)
 Split R-hat and effective sample size of one quantity.

Function Documentation

◆ Autocovariance()

std::vector< double > mcmcdiagnostics::Autocovariance ( const std::vector< double > & x)
inline

Autocovariance of x at lags 0..n-1 (divided by n), computed with an FFT.

Definition at line 35 of file mcmcdiagnostics.h.

References x.

Referenced by Diagnose().

◆ Diagnose()

Diagnostics mcmcdiagnostics::Diagnose ( const std::vector< std::vector< double > > & chains)
inline

Split R-hat and effective sample size of one quantity.

Parameters
chainsThe draws of each chain (after burn-in), in order

Returns NaN values when there are fewer than two chains or fewer than four draws per chain, or when the quantity does not vary.

Definition at line 72 of file mcmcdiagnostics.h.

References Autocovariance(), mcmcdiagnostics::Diagnostics::effective_sample_size, and mcmcdiagnostics::Diagnostics::rhat.

Referenced by SourceSinkData::MCMC().