Java Randomness Test Suite

JRandTest at SourceForge

com.fasteasytrade.JRandTest.Tests
Class BinaryRankTestFor6x8Matrices

java.lang.Object
  extended bycom.fasteasytrade.JRandTest.Tests.Base
      extended bycom.fasteasytrade.JRandTest.Tests.BinaryRankTestFor6x8Matrices
Direct Known Subclasses:
BinaryRankTestFor31x31Matrices, BinaryRankTestFor32x32Matrices

public class BinaryRankTestFor6x8Matrices
extends Base

BinaryRankTestFor6x8Matrices from DieHard

Author:
Zur Aougav

Nested Class Summary
 
Nested classes inherited from class com.fasteasytrade.JRandTest.Tests.Base
Base.point
 
Field Summary
(package private)  long mask
           
(package private)  int no_col
           
(package private)  int no_matrices
           
(package private)  int no_row
           
(package private)  int[] row
           
(package private)  int rt
           
(package private)  String testName
           
 
Fields inherited from class com.fasteasytrade.JRandTest.Tests.Base
df, DIM, PI, rs, UNIMAX, vecOutputDestinations
 
Constructor Summary
BinaryRankTestFor6x8Matrices()
           
 
Method Summary
 void help()
          help method to be implemented by each test class.
(package private)  int rankBinaryMatrix()
          compute the rank of a binary matrix
(package private)  double rankStatistics(String filename)
          perform the test and calculate test-stat
 void setParameters()
          set some parameters, so subclasses can set different values.
 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

row

int[] row

no_row

int no_row

no_col

int no_col

mask

long mask

testName

String testName

rt

int rt

no_matrices

int no_matrices
Constructor Detail

BinaryRankTestFor6x8Matrices

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

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 - is the filename to be read or the algorithm name.
Throws:
Exception
See Also:
Base.test(java.lang.String)

setParameters

public void setParameters()
set some parameters, so subclasses can set different values. Algorithm, in test method, runs and use these different values.


rankStatistics

double rankStatistics(String filename)
perform the test and calculate test-stat

Returns:
p-value

rankBinaryMatrix

int rankBinaryMatrix()
compute the rank of a binary matrix


Java Randomness Test Suite

JRandTest at SourceForge

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