public class Statistics
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
double |
max |
double |
mean |
double |
min |
double |
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 and Description |
---|
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,
RangeDouble extremes)
Calculate statistics from a frequency array.
|
Modifier and Type | Method and Description |
---|---|
Statistics |
clone()
Returns a new Statistics object with the same data.
|
java.lang.String |
toString()
Get a String representation of the Statistics
|
java.lang.StringBuffer |
toXML(java.lang.String indent)
Get an XML representation, as <Statistics> and child elements of that.
|
public int n
public double min
public double mode
public double mean
public double max
public double stdDev
public double stdDevMode
public Statistics()
public Statistics(int[] f, int start, int end)
public Statistics(int[] f, int start, int end, RangeDouble extremes)
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)