|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xj.anylogic.engine.internal.CSVDataProvider
com.xj.anylogic.engine.analysis.StatisticsDiscrete
public class StatisticsDiscrete
Statistics on a series of data samples of type double. Compared to StatisticsContinuous, data samples here have no relation to time (like e.g. products cost or patients LOS).
| Constructor Summary | |
|---|---|
StatisticsDiscrete()
Creates a discrete statistics. |
|
StatisticsDiscrete(DataUpdater updater)
Creates a discrete statistics. |
|
| Method Summary | |
|---|---|
void |
add(double value)
Adds a sample value to the statistics. |
int |
count()
Returns the number of samples added to the statistics. |
void |
destroyUpdater()
This method is used to 'disconnect' this data class from the active object/experiment this object was defined in. |
double |
deviation()
Returns the standard deviation of the statistics. |
double |
max()
Returns the maximum sample value, or Double.NEGATIVE_INFINITY if no samples have been added. |
double |
mean()
Returns the mean of the statistics, or 0 if no samples have been added. |
double |
meanConfidence()
Returns the mean confidence interval of the statistics, or 0 if no samples have been added. |
double |
min()
Returns the minimum sample value, or Double.POSITIVE_INFINITY if no samples have been added. |
void |
reset()
Discards all statistics accumulated. |
double |
sum()
The method returns sum of the samples added to the statistics, or 0 if no samples have been added. |
java.lang.String |
toString()
Returns the tab-separated multiline textual representation of the statistics. |
void |
update()
Should be overridden and call add( val ) if the user has specified the value. |
double |
variance()
Returns the variance of the statistics, or 0 if less than 2 samples have been added. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StatisticsDiscrete()
public StatisticsDiscrete(DataUpdater updater)
updater - updater which may be used instead of overriding
update() method| Method Detail |
|---|
public void destroyUpdater()
public int count()
public double min()
public double max()
public double mean()
public double variance()
public double deviation()
public double meanConfidence()
public double sum()
public void reset()
public void add(double value)
value - the value being addedpublic void update()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||