|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ccs.chaos.ChaosMetrics
public class ChaosMetrics
A ChaosMetrics object is returned when an entropy sample is submitted via a
ChaosSetter
. It contains information about the quality of the
sample.
Field Summary | |
---|---|
double |
degrader
The entropy degradation factor. |
double |
entropy
The mean entropy per byte. |
int[] |
hist
Histogram of value vs. frequency. hist[i] contains the number of sample bytes with value i. |
double |
mean
The arithmetic mean of the sample. |
int |
n
The number of bytes in the sample. |
double |
scorr
The serial correlation coefficient of the sample. |
Constructor Summary | |
---|---|
ChaosMetrics()
Construct an empty ChaosMetrics. |
|
ChaosMetrics(byte[] sample)
Construct a ChaosMetrics which measures the supplied sample. |
|
ChaosMetrics(ChaosMetrics cm)
Construct a ChaosMetrics which is a copy of another ChaosMetrics. |
Method Summary | |
---|---|
void |
transientMarshal(java.io.DataOutputStream dos)
Transfer the ChaosMetrics over a stream. |
void |
transientUnmarshal(java.io.DataInputStream dis)
Transfer the ChaosMetrics over a stream. |
void |
xmlMarshal(CXTStream cxt)
Express the ChaosMetrics as a CXT element, histogram excluded. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int n
public double entropy
public double degrader
entropy
is multiplied by this in order to make sure the pool entropy
estimate is conservative. Precision: cf entropy
.
public double mean
entropy
.
public double scorr
entropy
.
public int[] hist
Constructor Detail |
---|
public ChaosMetrics()
public ChaosMetrics(byte[] sample)
public ChaosMetrics(ChaosMetrics cm)
Method Detail |
---|
public void transientMarshal(java.io.DataOutputStream dos) throws java.io.IOException
java.io.IOException
public void transientUnmarshal(java.io.DataInputStream dis) throws java.io.IOException
java.io.IOException
public void xmlMarshal(CXTStream cxt) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |