/usr/include/dieharder/Vtest.h is in libdieharder-dev 3.31.1-7build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | /*
*========================================================================
* $Id: Btest.c 212 2006-07-21 18:07:33Z rgb $
*
* See copyright in copyright.h and the accompanying file COPYING
*========================================================================
*/
/*
* This is the struct used in Vtest.c, a standard Pearson's chisq
* test on a vector of measurements and corresponding expected
* mean values.
*/
typedef struct {
unsigned int nvec; /* Length of x,y vectors */
unsigned int ndof; /* Number of degrees of freedom, default nvec-1 */
double cutoff; /* y has to be greater than this to be included */
double *x; /* Vector of measurements */
double *y; /* Vector of expected values */
double chisq; /* Resulting Pearson's chisq */
double pvalue; /* Resulting p-value */
} Vtest;
void Vtest_create(Vtest *vtest, unsigned int nvec);
void Vtest_destroy(Vtest *vtest);
void Vtest_eval(Vtest *vtest);
|