13# include <gsl/gsl_rng.h>
15#define DEF_BOOT_BLOCK_SIZE 500
17Boot *
Boot_new(
int nchr,
long nsnp[nchr],
long nrep,
int npat,
18 long blocksize, gsl_rng * rng);
20void Boot_add(
Boot *self,
int chr,
long snpndx,
int pat,
double z);
25void Boot_sanityCheck(
const Boot * self,
const char *file,
int line);
29 long len,
double v[len]);
32unsigned Boot_multiplicity_slow(
Boot * self,
long snp,
long rep);
Boot * Boot_new(int nchr, long nsnp[nchr], long nrep, int npat, long blocksize, gsl_rng *rng)
Constructor for class Boot.
Definition: boot.c:62
void Boot_free(Boot *self)
Destructor.
Definition: boot.c:232
void Boot_print(const Boot *self, FILE *ofp)
Print a Boot object.
Definition: boot.c:328
void Boot_add(Boot *self, int chr, long snpndx, int pat, double z)
Add one site pattern contribution to a Boot structure.
Definition: boot.c:216
void Boot_aggregate(Boot *self, int rep, int npat, double count[npat])
Add to an array the site pattern counts from a bootstrap replicate.
Definition: boot.c:256
void confidenceBounds(double *lowBnd, double *highBnd, double confidence, long len, double v[len])
Calculate confidence bounds from a vector of values representing samples drawn from the sampling dist...
Definition: boot.c:318
Contains the all data involved in a moving blocks bootstrap.
Definition: boot.c:34