Statistical tests. VonNeumann test
Code: "stat_test1.py". Programming language: Python
DMelt Version 1. Last modified: 12/11/2015. License: Free
https://datamelt.org/code/cache/stat_test1_2014.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()