public class StatisticsContinuous
extends java.lang.Object
implements java.io.Serializable
time
argument,
which assume the last value added holds until the given time.Constructor and Description 

StatisticsContinuous()
Creates a continuous statistics.

StatisticsContinuous(DataUpdater_xjal updater)
Creates a continuous statistics.

Modifier and Type  Method and Description 

void 
add(double value,
double time)
Adds a new data sample to the statistics, i.e.

int 
count()
Returns the number of samples added to the statistics.

void 
destroyUpdater_xjal()
This method is used to 'disconnect' this data class from the
agent/experiment this object was defined in.
It is usually called on agent destroy so that experiment could use this data object e.g. 
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 
getTimeStart()
This method is needed to calculate totalTime in cloud.

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
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.
Interval is calculated for the confidence level of 95%. 
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
+infinity
if less than 2 samples have been added or if no time has elapsed.Interval is calculated for the confidence level of 95%. 
double 
min()
Returns the minimum sample value, or
+infinity
if no samples have been added. 
void 
reset()
Discards all statistics accumulated.

java.lang.String 
toString()
Returns the tabseparated 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.

public StatisticsContinuous()
public StatisticsContinuous(DataUpdater_xjal updater)
updater
 updater which may be used instead of overriding
update()
method@AnyLogicInternalCodegenAPI public void destroyUpdater_xjal()
public int count()
public double min()
+infinity
if no samples have been added.+infinity
public double max()
infinity
if no samples have been added.infinity
public double mean()
public double mean(double time)
time
 the timepublic double variance()
public double variance(double time)
time
 the timepublic double deviation()
public double deviation(double time)
time
 the timepublic double meanConfidence()
public double meanConfidence(double time)
+infinity
if less than 2 samples have been added or if no time has elapsed.time
 the timepublic double integral()
public double integral(double time)
time
 the timepublic 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
@AnyLogicInternalAPI public double getTimeStart()
Copyright © AnyLogic North America, LLC. All Rights Reserved.