Public Member Functions

PsiMClist Class Reference

basic monte carlo samples list More...

#include <mclist.h>

Inheritance diagram for PsiMClist:
BootstrapList JackKnifeList MCMCList

List of all members.

Public Member Functions

 PsiMClist (int N, int nprm)
 Initialize the list to take N samples of nprm parameters.
 PsiMClist (const PsiMClist &mclist)
 copy a list of mcsamples
 ~PsiMClist ()
 destructor
std::vector< double > getEst (unsigned int i) const
 get a single parameter estimate at sample i
double getEst (unsigned int i, unsigned int prm) const
 get a single sample of a single parameter
void setEst (unsigned int i, const std::vector< double > est, double deviance)
 set a sample of parameters
virtual void setdeviance (unsigned int i, double deviance)
 set the deviance separately for sample i
virtual double getPercentile (double p, unsigned int prm)
 get a percentile for parameter prm
virtual double getMean (unsigned int prm) const
 get the average of parameter prm
virtual double getStd (unsigned int prm) const
 get the standard deviantion of parameter prm
double getdeviance (unsigned int i) const
 get the deviance of sample i
unsigned int getNsamples (void) const
 get the total number of samples
unsigned int getNparams (void) const
 get the number of parameters
double getDeviancePercentile (double p)
 get the p-percentile of the deviance (p in the range (0,1) )

Detailed Description

basic monte carlo samples list

This list stores monte carlo samples and deviances, nothing else.


Constructor & Destructor Documentation

PsiMClist::PsiMClist ( int  N,
int  nprm 
) [inline]

Initialize the list to take N samples of nprm parameters.

Parameters:
N number of samples to be drawn
nprm number of parameters in the model that is analyzed

Member Function Documentation

double PsiMClist::getEst ( unsigned int  i,
unsigned int  prm 
) const

get a single sample of a single parameter

Parameters:
i sample index
prm parameter index
double PsiMClist::getMean ( unsigned int  prm  )  const [virtual]

get the average of parameter prm

Parameters:
prm index of the parameter of interest
double PsiMClist::getPercentile ( double  p,
unsigned int  prm 
) [virtual]

get a percentile for parameter prm

Parameters:
p desired percentile (in the range (0,1))
prm index of the paramter of interest
double PsiMClist::getStd ( unsigned int  prm  )  const [virtual]

get the standard deviantion of parameter prm

Parameters:
prm index of the parameter of interest
void PsiMClist::setEst ( unsigned int  i,
const std::vector< double >  est,
double  deviance 
)

set a sample of parameters

Parameters:
i index of the sample to be set
est parameter vector to be set at index
deviance deviance associated with the sample

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