|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.grelf.grip.Statistics
public class Statistics
Record to hold a set of measurements of a distribution.
Field Summary | |
---|---|
int |
max
|
double |
mean
|
int |
min
|
int |
mode
|
int |
n
No of samples. |
double |
stdDev
Standard deviation. |
double |
stdDevMode
Standard deviation about the mode instead of about the mean - for autoThreshold. |
Constructor Summary | |
---|---|
Statistics()
Fields are public so allow setting individually if necessary. |
|
Statistics(int[] f,
int start,
int end)
Calculate statistics from a frequency array. |
|
Statistics(int[] f,
int start,
int end,
int scale)
Calculate statistics from a frequency array. |
Method Summary | |
---|---|
Statistics |
clone()
|
static Statistics |
getStatistics(int[] f,
int start,
int end)
Deprecated. |
java.lang.String |
toString()
Get a String representation of the Statistics |
java.lang.StringBuffer |
toXML(java.lang.String indent)
Get an XML representation, as |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int n
public int min
public int mode
public int max
public double mean
public double stdDev
public double stdDevMode
Constructor Detail |
---|
public Statistics()
public Statistics(int[] f, int start, int end)
public Statistics(int[] f, int start, int end, int scale)
Method Detail |
---|
public Statistics clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.StringBuffer toXML(java.lang.String indent)
@Deprecated public static Statistics getStatistics(int[] f, int start, int end)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |