|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.erichseifert.gral.data.statistics.Statistics
public class Statistics
A class that computes and stores various statistical information on a data source.
Field Summary | |
---|---|
static String |
KURTOSIS
Key for specifying the kurtosis. |
static String |
MAX
Key for specifying the maximum, i.e. the largest value. |
static String |
MEAN
Key for specifying the arithmetic mean of all values. |
static String |
MEAN_DEVIATION
Key for specifying the expected value. |
static String |
MEDIAN
Key for specifying the median (or 50% quantile). |
static String |
MIN
Key for specifying the minimum, i.e. the smallest value. |
static String |
N
Key for specifying the total number of elements. |
static String |
SKEWNESS
Key for specifying the skewness. |
static String |
SUM
Key for specifying the sum of all values. |
static String |
SUM2
Key for specifying the sum of all value squares. |
static String |
SUM3
Key for specifying the sum of all value cubics. |
static String |
SUM4
Key for specifying the sum of all value quads. |
static String |
VARIANCE
Key for specifying the variance. |
Constructor Summary | |
---|---|
Statistics(DataSource data)
Creates a new Statistics object with the specified DataSource. |
Method Summary | |
---|---|
void |
dataChanged(DataSource data)
Method that is invoked by objects that provide support for DataListeners. |
double |
get(String key)
Returns the specified information for the data source. |
double |
get(String key,
Orientation orientation,
int index)
Returns the specified information for the specified column or row. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SUM
public static final String SUM2
public static final String SUM3
public static final String SUM4
public static final String MEAN
public static final String MIN
public static final String MAX
public static final String N
public static final String MEAN_DEVIATION
public static final String VARIANCE
public static final String SKEWNESS
public static final String KURTOSIS
public static final String MEDIAN
Constructor Detail |
---|
public Statistics(DataSource data)
data
- DataSource to be analyzed.Method Detail |
---|
public double get(String key, Orientation orientation, int index)
key
- Requested information.orientation
- Direction of the values the statistical is built from.index
- Column or row index.
public double get(String key)
key
- Requested information.
public void dataChanged(DataSource data)
DataListener
dataChanged
in interface DataListener
data
- data that has changed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |