Java Randomness Test Suite

JRandTest at SourceForge

com.fasteasytrade.JRandTest.Tests
Class OverlappingPairsSparseOccupancy

java.lang.Object
  extended bycom.fasteasytrade.JRandTest.Tests.Base
      extended bycom.fasteasytrade.JRandTest.Tests.OverlappingPairsSparseOccupancy
Direct Known Subclasses:
DNA, OverlappingQuadruplesSparseOccupancy

public class OverlappingPairsSparseOccupancy
extends Base

OverlappingPairsSparseOccupancy (OPSO) from DieHard

Author:
Zur Aougav

Nested Class Summary
 
Nested classes inherited from class com.fasteasytrade.JRandTest.Tests.Base
Base.point
 
Field Summary
 int bits_pl
           
(package private)  int bits_pw
           
(package private)  int dim
           
(package private)  int flag
           
(package private)  int ltrs_pw
           
(package private)  int maskltr
           
(package private)  double mean
           
(package private)  int no_tests
           
 double std
           
 String testName
          The algorithms OPSO, OQSO and DNA use 3 parameters set in setParameters.
(package private)  int wd
           
 
Fields inherited from class com.fasteasytrade.JRandTest.Tests.Base
df, DIM, PI, rs, UNIMAX, vecOutputDestinations
 
Constructor Summary
OverlappingPairsSparseOccupancy()
           
 
Method Summary
 int get_w(int rt)
          get a word from specific bits
 void help()
          help method to be implemented by each test class.
 void setParameters()
          Different parameters set by 3 algorithms: OPSO, OQSO and DNA.
 void test(String filename)
          test method to be implemented by each test class.
 
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
 

Field Detail

bits_pw

final int bits_pw
See Also:
Constant Field Values

mean

final double mean

dim

final int dim

no_tests

final int no_tests
See Also:
Constant Field Values

testName

public String testName
The algorithms OPSO, OQSO and DNA use 3 parameters set in setParameters.


bits_pl

public int bits_pl

std

public double std

flag

int flag

ltrs_pw

int ltrs_pw

wd

int wd

maskltr

int maskltr
Constructor Detail

OverlappingPairsSparseOccupancy

public OverlappingPairsSparseOccupancy()
Method Detail

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()

setParameters

public void setParameters()
Different parameters set by 3 algorithms: OPSO, OQSO and DNA.


test

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

Overrides:
test in class Base
Parameters:
filename - is the filename to be read or the algorithm name.
See Also:
Base.test(java.lang.String)

get_w

public int get_w(int rt)
get a word from specific bits


Java Randomness Test Suite

JRandTest at SourceForge

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