|
||||||||||
| 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.StatisticsContinuous
public class StatisticsContinuous
Statistics on a value that persists in continuous time but changes only at discrete time moments (like e.g. queue length). The samples must be added to this statistics with ascending time stamps. The mean, variance, etc. methods assume the last value adde holds until the time of call.
| Constructor Summary | |
|---|---|
StatisticsContinuous()
Creates a continuous statistics. |
|
StatisticsContinuous(DataUpdater updater)
Creates a continuous statistics. |
|
| Method Summary | |
|---|---|
void |
add(double value,
double time)
Adds a new data sample to the statistics, i.e. notifies the statistics about the value change at the given time. |
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 deviation of the statistics at the time of last update. |
double |
deviation(double time)
Returns the standard deviation of the statistics at the given time assuming the last value added holds until the given time. |
double |
integral()
Returns the mean integral of the statistics at the time of last update, or 0 if no samples have been added. |
double |
integral(double time)
Returns the integral of the statistics at the given time assuming the last value added holds until the given time, or 0 if no samples have been added. |
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 at the time of last update, or 0 if no samples have been added. |
double |
mean(double time)
Returns the mean of the statistics at the given time assuming the last value added holds until the given time, or 0 if no samples have been added. |
double |
meanConfidence()
Returns the mean confidence of the statistics at the time of last update, or 0 if no samples have been added. |
double |
meanConfidence(double time)
Returns the mean confidence interval of the statistics at the given time assuming the last value added holds until the given time, or Double.POSITIVE_INFINITY if less than 2 samples have been added or if no time has elapsed. |
double |
min()
Returns the minimum sample value, or Double.POSITIVE_INFINITY if no samples have been added. |
void |
reset()
Discards all statistics accumulated. |
java.lang.String |
toString()
Returns the tab-separated multiline textual representation of the statistics corresponding to the time of last update. |
void |
update()
Should be overridden and call add( val, time() ) if the user has specified the value. |
double |
variance()
Returns the variance of the statistics at the time of last update, or 0 if no samples have been added. |
double |
variance(double time)
Returns the variance of the statistics at the given time assuming the last value added holds until the given time, or 0 if no samples have been added. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StatisticsContinuous()
public StatisticsContinuous(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 mean(double time)
time - the time
public double variance()
public double variance(double time)
time - the time
public double deviation()
public double deviation(double time)
time - the time
public double meanConfidence()
public double meanConfidence(double time)
time - the time
public double integral()
public double integral(double time)
time - the time
public void reset()
public void add(double value,
double time)
value - the new valuetime - the timepublic 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 | |||||||||