#include <mdp_jackboot.h>
Public Member Functions | |
mdp_jackboot (int nconf_, int narg_=1) | |
allocate container for nconf_ datasets of nargs_ numbers each | |
void | dimension (int nconf_, int narg_=1) |
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) |
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;