std_test.h
来自「Dieharder是一个是一个测试一序列伪随机数的随机性能的测试套件」· C头文件 代码 · 共 24 行
H
24 行
/* * This is is the std_test struct. It is the sole output interface between * the user and the test program -- all standard test inputs and returns * are passed through this struct. A test can have additional user-settable * arguments, of course, but they must be passed in GLOBAL SHARED VARIABLES * defined just for the particular test in question. This is a bit ugly, * but so are void *args argument lists and va_start/va_end for multiple * layers of passing arguments. */typedef struct { void (*testfunc)(); /* Test function name */ uint nkps; /* Number of test statistics created per run */ uint tsamples; /* Number of samples per test (if applicable) */ uint psamples; /* Number of test runs per final KS p-value */ double *pvalues; /* Vector of length psamples to hold test p-values */ double ks_pvalue; /* Final KS p-value from run of many tests */} Test;Test **create_test(Dtest *dtest, uint tsamples, uint psamples, void (*testfunc)() );void destroy_test(Dtest *dtest, Test **test);void std_test(Dtest *dtest, Test **test);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?