Java Randomness Test Suite

JRandTest at SourceForge

com.fasteasytrade.JRandTest.Tests
Class Run

java.lang.Object
  extended bycom.fasteasytrade.JRandTest.Tests.Base
      extended bycom.fasteasytrade.JRandTest.Tests.Run

public class Run
extends Base

Run from DieHard

Run class extends Base
count the number of runs and compute the statistics
Algorithm AS 157 Appl. Statist. (1981) vol. 30, No. 1

Author:
Zur Aougav

Nested Class Summary
 
Nested classes inherited from class com.fasteasytrade.JRandTest.Tests.Base
Base.point
 
Field Summary
 
Fields inherited from class com.fasteasytrade.JRandTest.Tests.Base
df, DIM, PI, rs, UNIMAX, vecOutputDestinations
 
Constructor Summary
Run()
           
 
Method Summary
 void help()
          help method to be implemented by each test class.
 void test(String filename)
          test method to be implemented by each test class.
 void udruns(double[] x, int length, double[] ustat, double[] dstat)
           
 
Methods inherited from class com.fasteasytrade.JRandTest.Tests.Base
ABS, ABS, addOutputDestination, avg, chisq, Chisq, chitest, closeInputStream, d4, d4d_d, d4d, exp, exp, G, isOpen, KStest, log, MAX, MAX, MIN, MIN, openInputStream, phi, Phi, Poisson_fit, Poisson, pow, printf, puts, qsort, qsort, qsort, r2_double, read32BitsAsDouble, readByte, readInt, readLong, registerInput, removeOutputDestination, showbit, SIGN, SIGN, sqrt, sqrt, stdev, uni
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Run

public Run()
Method Detail

udruns

public void udruns(double[] x,
                   int length,
                   double[] ustat,
                   double[] dstat)
            throws Exception
Parameters:
x - array of doubles
length - is length of array x
ustat - array with one double, to return value to caller
dstat - array with one double, to return value to caller
Throws:
Exception

help

public void help()
Description copied from class: Base
help method to be implemented by each test class.

Overrides:
help in class Base
See Also:
Base.help()

test

public void test(String filename)
          throws Exception
Description copied from class: Base
test method to be implemented by each test class.

Overrides:
test in class Base
Parameters:
filename - input file with random data
Throws:
Exception

Java Randomness Test Suite

JRandTest at SourceForge

JRandTest at SourceForge
Copyright © 2005 Zur Aougav. All Rights Reserved.