public class StatisticsDiscrete
extends java.lang.Object
implements java.io.Serializable
Constructor and Description 

StatisticsDiscrete()
Creates a discrete statistics.

StatisticsDiscrete(DataUpdater_xjal updater)
Creates a discrete statistics.

Modifier and Type  Method and Description 

void 
add(double value)
Adds a sample value to the statistics.

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 standard deviation of the statistics.

double 
max()
Returns the maximum sample value, or
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
+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 tabseparated 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.

public StatisticsDiscrete()
public StatisticsDiscrete(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 variance()
public double deviation()
public double meanConfidence()
0
if no
samples have been added. Returns +infinity
if only one
sample has been added so far+infinity
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
Copyright © AnyLogic North America, LLC. All Rights Reserved.