diehard_parking_lot.h

来自「Dieharder是一个是一个测试一序列伪随机数的随机性能的测试套件」· C头文件 代码 · 共 35 行

H
35
字号
/* * diehard_parking_lot test header. *//* * function prototype */void diehard_parking_lot(Test **test,int irun);static Dtest diehard_parking_lot_dtest = {  "Diehard Parking Lot Test",  "\n\#==================================================================\n\#             Diehard Parking Lot Test (modified).\n\# This tests the distribution of attempts to randomly park a\n\# square car of length 1 on a 100x100 parking lot without\n\# crashing.  We plot n (number of attempts) versus k (number of\n\# attempts that didn't \"crash\" because the car squares \n\# overlapped and compare to the expected result from a perfectly\n\# random set of parking coordinates.  This is, alas, not really\n\# known on theoretical grounds so instead we compare to n=12,000\n\# where k should average 3523 with sigma 21.9 and is very close\n\# to normally distributed.  Thus (k-3523)/21.9 is a standard\n\# normal variable, which converted to a uniform p-value, provides\n\# input to a KS test with a default 100 samples.\n\#==================================================================\n",  100,  0,  1};/* * Global variables (none in this case) */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?