|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.fasteasytrade.JRandTest.Tests.Base
com.fasteasytrade.JRandTest.Tests.CountThe1s
CountThe1s from DieHard
| Nested Class Summary |
| Nested classes inherited from class com.fasteasytrade.JRandTest.Tests.Base |
Base.point |
| Field Summary | |
(package private) int |
A
|
(package private) int |
B
|
(package private) int |
C
|
(package private) int |
D
|
(package private) int |
E
|
(package private) double |
mean
|
(package private) int |
no_wds
|
(package private) double[] |
prob
|
(package private) int |
rt
|
(package private) String |
s
|
(package private) double |
std
|
(package private) boolean |
testStream
|
| Fields inherited from class com.fasteasytrade.JRandTest.Tests.Base |
df, DIM, PI, rs, UNIMAX, vecOutputDestinations |
| Constructor Summary | |
CountThe1s()
|
|
| Method Summary | |
(package private) int |
b2l(int x)
convert a byte to a letter : A to E |
(package private) double |
cnt_stat(String filename,
int rshft)
count the 1's in the sequence of bytes |
void |
help()
help method to be implemented by each test class. |
void |
setParameters()
to support CountThe1s as stream (current class) and also CountThe1sSpecificBytes, we use differrent help() and setParameters() methods. |
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 |
final int A
final int B
final int C
final int D
final int E
final double mean
final double std
final double[] prob
int rt
int no_wds
String s
boolean testStream
| Constructor Detail |
public CountThe1s()
| Method Detail |
public void help()
Base
help in class BaseBase.help()public void setParameters()
public void test(String filename)
throws Exception
Base
test in class Basefilename - is the filename to be read or the algorithm name.
ExceptionBase.test(java.lang.String)int b2l(int x)
double cnt_stat(String filename,
int rshft)
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||