>> ranlib_test
19-Sep-2014 10:19:39
RANLIB_TEST
MATLAB version
Test the RANLIB library.
RANLIB_TEST_PHRTSD
Test PHRTSD,
which generates two seeds from a phrase.
The phrase is "randomizer".
SEED1 = 316927234
SEED2 = 972931675
RANLIB_TEST_BOT
Test the lower level random number generators.
Five of the 32 generators will be tested.
We generate 100000 numbers, reset the block
and do it again. No disagreements should occur.
INITIALIZE - Note:
The RNGLIB package has been initialized.
Testing generator 1
Testing generator 5
Testing generator 10
Testing generator 20
Testing generator 32
RANLIB_TEST_GENBET
Test GENBET,
which generates Beta deviates.
INITIALIZE - Note:
The RNGLIB package has been initialized.
N = 1000
Parameters:
A = 5.62734
B = 9.8901
Sample data range: 0.0716205 0.753428
Sample mean, variance: 0.357982 0.0132722
Distribution mean, variance 0.362646 0.0139933
RANLIB_TEST_IGNBIN
Test IGNBIN,
which generates binomial deviates.
INITIALIZE - Note:
The RNGLIB package has been initialized.
N = 10000
Parameters:
NN = 10
PP = 0.987789
Sample data range: 7 10
Sample mean, variance: 9.8836 0.115063
Distribution mean, variance 9.87789 0.12062
RANLIB_TEST_GENCHI
Test GENCHI,
which generates Chi-square deviates.
INITIALIZE - Note:
The RNGLIB package has been initialized.
N = 1000
Parameters:
DF = 5.62734
Sample data range: 0.25896 19.0622
Sample mean, variance: 5.63553 10.3557
Distribution mean, variance 5.62734 11.2547
RANLIB_TEST_GENEXP
Test GENEXP,
which generates exponential deviates.
INITIALIZE - Note:
The RNGLIB package has been initialized.
N = 1000
Parameters:
MU = 5.38442
Sample data range: 0.000615049 54.076
Sample mean, variance: 5.22299 27.5365
Distribution mean, variance 5.38442 28.9919
RANLIB_TEST_GENF
Test GENF,
which generates F deviates.
INITIALIZE - Note:
The RNGLIB package has been initialized.
N = 10000
Parameters:
DFN = 6.59904
DFD = 9.93894
Sample data range: 0.0295831 15.4263
Sample mean, variance: 1.24154 1.05389
Distribution mean, variance 1.25192 1.16278
RANLIB_TEST_GENGAM
Test GENGAM,
which generates Gamma deviates.
INITIALIZE - Note:
The RNGLIB package has been initialized.
N = 1000
Parameters:
A = 5.62734
R = 9.8901
Sample data range: 0.541996 3.69391
Sample mean, variance: 1.7552 0.288387
Distribution mean, variance 1.75751 0.312316
RANLIB_TEST_IGNNBN
Test IGNNBN,
which generates negative binomial deviates.
INITIALIZE - Note:
The RNGLIB package has been initialized.
N = 10000
Parameters:
NN = 11
PP = 0.987789
Sample data range: 0 3
Sample mean, variance: 0.1376 0.13968
Distribution mean, variance 0.135983 0.137664
RANLIB_TEST_GENNCH
Test GENNCH,
which generates noncentral Chi-square deviates.
INITIALIZE - Note:
The RNGLIB package has been initialized.
N = 1000
Parameters:
DF = 6.11319
XNONC = 1.97558
Sample data range: 0.538524 36.8874
Sample mean, variance: 8.30438 22.2955
Distribution mean, variance 8.08877 20.1287
RANLIB_TEST_GENNF
Test GENNF,
which generates noncentral F deviates.
INITIALIZE - Note:
The RNGLIB package has been initialized.
N = 10000
Parameters:
DFN = 6.59904
DFD = 9.93894
XNONC = 1.60272
Sample data range: 0.0526302 21.7001
Sample mean, variance: 1.55255 1.70799
Distribution mean, variance 1.55598 1.75873
RANLIB_TEST_GENNOR
Test GENNOR,
which generates normal deviates.
INITIALIZE - Note:
The RNGLIB package has been initialized.
N = 1000
Parameters:
MU = 0.282982
SD = 3.95421
Sample data range: -10.6242 14.7124
Sample mean, variance: 0.34814 15.2795
Distribution mean, variance 0.282982 15.6358
RANLIB_TEST_IGNPOI
Test IGNPOI,
which generates Poisson deviates.
INITIALIZE - Note:
The RNGLIB package has been initialized.
N = 1000
Parameters:
MU = 10.5259
Sample data range: 2 22
Sample mean, variance: 10.452 10.4702
Distribution mean, variance 10.5259 10.5259
RANLIB_TEST_GENUNF
Test GENUNF,
which generates uniform deviates.
INITIALIZE - Note:
The RNGLIB package has been initialized.
N = 1000
Parameters:
A = 5.62734
B = 15.5174
Sample data range: 5.62775 15.4968
Sample mean, variance: 10.4969 7.80242
Distribution mean, variance 10.5724 8.15117
RANLIB_TEST
Normal end of execution.
19-Sep-2014 10:20:43
>>