Public Member Functions

MCMCList Class Reference

a list of Bayesian MCMC samples More...

#include <mclist.h>

Inheritance diagram for MCMCList:
PsiMClist

List of all members.

Public Member Functions

 MCMCList (unsigned int N, unsigned int nprm, unsigned int nblocks)
void setppData (unsigned int i, const std::vector< int > &ppdata, double ppdeviance)
 set up MCMCList
std::vector< int > getppData (unsigned int i) const
 get a posterior predictive data sample
int getppData (unsigned int i, unsigned int j) const
double getppDeviance (unsigned int i) const
 get deviance associated with a posterior predictive sample
void setppRpd (unsigned int i, double Rpd)
double getppRpd (unsigned int i) const
void setppRkd (unsigned int i, double Rkd)
double getppRkd (unsigned int i) const
void setRpd (unsigned int i, double Rpd)
double getRpd (unsigned int i) const
void setRkd (unsigned int i, double Rkd)
double getRkd (unsigned int i) const
unsigned int getNblocks (void) const
 get the number of blocks
void setlogratio (unsigned int i, unsigned int j, double logratio)
 set the log posterior ratio for sample i and block j
double getlogratio (unsigned int i, unsigned int j) const
 get the log posterior ratio for sample i and block j
void set_accept_rate (double rate)
 set the acceptance rate
double get_accept_rate (void) const
 get the acceptance rate

Detailed Description

a list of Bayesian MCMC samples

This list stores additional data that are important for bayesian analysis.: 1. For each parameter sample, a sample from the respective psychometric function is stored. These samples can be considered samples from the posterior predictive distribution 2. For each sample from the posterior predictive distribution, the deviance is stored 3. the list allows to obtain the estimated bayesian p-value


Constructor & Destructor Documentation

MCMCList::MCMCList ( unsigned int  N,
unsigned int  nprm,
unsigned int  nblocks 
) [inline]
Parameters:
N number of samples to be drawn
nprm number of parameters in the model
nblocks number of blocks in the experiment

Member Function Documentation

void MCMCList::setppData ( unsigned int  i,
const std::vector< int > &  ppdata,
double  ppdeviance 
)

set up MCMCList

store a posterior predictive data set

Parameters:
i index of the posterior predictive sample to be set
ppdata posterior predictive data sample
ppdeviance deviance associated with the posterior predictive sample

The documentation for this class was generated from the following files: