Statistical tests. VonNeumann test
Code: "stat_test1.py"
Programming language: Python
DMelt Version 1. Last modified: 12/10/2015. License: Free
http://jwork.org/dmelt/code/cache/stat_test1_6401.py
To run this script using the DMelt IDE, copy the above URL link to the menu [File]→[Read script from URL] of the DMelt IDE.


from javanpst.tests.randomness.vonNeumannTest import VonNeumannTest
from javanpst.data.structures.sequence import NumericSequence

d = NumericSequence([12362,12439,12057,13955,14123,3698,16523,18610,1442,20310,21500,23000,21316])
t1 = VonNeumannTest(d)
t1.doTest()
print "Results of VonNeumann  test:"+t1.printReport()