mdp_jackboot Class Reference

coniatiner class for jackknife and boostrap analysis More...

#include <mdp_jackboot.h>

List of all members.

Public Member Functions

 mdp_jackboot ()
 mdp_jackboot (int nconf_, int narg_=1)
 allocate container for nconf_ datasets of nargs_ numbers each
void dimension (int nconf_, int narg_=1)
virtual ~mdp_jackboot ()
float * address (int conf)
float & operator() (int present_conf, int arg)
float & operator() (int arg)
void plain (int i)
void makesample (int *p, int nboot)
float mean ()
float j_err ()
float b_err (int nboot=100)

Public Attributes

float(* f )(float *, void *)
int nconf
int narg
int conf
float * m
void * handle

Friends

float mdp_jackboot_plain (float *x, void *a)

Detailed Description

coniatiner class for jackknife and boostrap analysis

Example:

///    mdp_jackboot jb(10,2);
///    for(int k=0; k<10; k++) {       
///       jb(k,0)=mdp_random.plain();
///       jb(k,1)=mdp_random.plain();
///    }
///    jb.plain(0);
///    cout << "mean of jb(k,0) =" << mean() << endl;
///    cout << "jackknife of mean jb(k,0) =" << j_err() << endl;
///    cout << "boostrap of mean jb(k,0) =" << b_err() << endl;
///    jb.plain(1);
///    cout << "mean of jb(k,1) =" << mean() << endl;
///    cout << "jackknife of mean jb(k,1) =" << j_err() << endl;
///    cout << "boostrap of mean jb(k,1) =" << b_err() << endl;
/// 

Constructor & Destructor Documentation

mdp_jackboot::mdp_jackboot (  )  [inline]
mdp_jackboot::mdp_jackboot ( int  nconf_,
int  narg_ = 1 
) [inline]

allocate container for nconf_ datasets of nargs_ numbers each

virtual mdp_jackboot::~mdp_jackboot (  )  [inline, virtual]

Member Function Documentation

float* mdp_jackboot::address ( int  conf  )  [inline]
float mdp_jackboot::b_err ( int  nboot = 100  )  [inline]
void mdp_jackboot::dimension ( int  nconf_,
int  narg_ = 1 
) [inline]
float mdp_jackboot::j_err (  )  [inline]
void mdp_jackboot::makesample ( int *  p,
int  nboot 
) [inline]
float mdp_jackboot::mean (  )  [inline]
float& mdp_jackboot::operator() ( int  arg  )  [inline]
float& mdp_jackboot::operator() ( int  present_conf,
int  arg 
) [inline]
void mdp_jackboot::plain ( int  i  )  [inline]

Friends And Related Function Documentation

float mdp_jackboot_plain ( float *  x,
void *  a 
) [friend]

Member Data Documentation

float(* mdp_jackboot::f)(float *, void *)

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines

Generated on Wed Dec 23 14:03:15 2009 for fermiqcd by  doxygen 1.6.1