|
||||||||||
| 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.ChartItem
com.xj.anylogic.engine.analysis.HistogramData
public abstract class HistogramData
A base class for unidimensional histograms data objects. Histogram data always calculates the probability distribution function (PDF) and discrete statistics, and may or may not calculate the cumulative distribution function (CDF) and low/high percentiles.
| Method Summary | |
|---|---|
abstract void |
add(double val)
Adds a sample data item to the histogram data. |
boolean |
arePercentilesEnabled()
Checks if percentile calculation is enabled. |
int |
count()
Returns the number of samples added to the histogram data. |
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 histogram data. |
double |
getCDF(int index)
Returns the CDF (cumulative distribution function) at the END of the given interval. |
double |
getMaxPDF()
Returns the maximum PDF value across all intervals, i.e. the maximum number of hits per interval divided by the total number of samples. |
int |
getNumberOfIntervals()
Returns the number of intervals in the histogram data. |
double |
getPDF(int index)
Returns the PDF (probability distribution function) at the given interval. |
double |
getPercentHigh()
Returns the high percent value used for percentile calculation (1 is 100%). |
double |
getPercentLow()
Returns the low percent value used for percentile calculation (1 is 100%). |
StatisticsDiscrete |
getStatistics()
Returns the statisctics object embedded into the histogram data. |
abstract double |
getXMax()
Returns the upper bound of the range covered by intervals. |
abstract double |
getXMin()
Returns the lower bound of the range covered by intervals. |
boolean |
isCDFEnabled()
Checks if the CDF calculation is enabled. |
double |
max()
Returns the maximum sample value, or Double.NEGATIVE_INFINITY if no samples have been added. |
double |
mean()
Returns the mean of the histogram. |
double |
meanConfidence()
Returns the mean confidence interval of the histogram data. |
double |
min()
Returns the minimum sample value, or Double.POSITIVE_INFINITY if no samples have been added. |
void |
reset()
Fully resets the histogram data: discards all PDF/CDF data and statistics. |
void |
setCDFEnabled(boolean yes)
Enables or disables the CDF calculation. |
void |
setPercentilesEnabled(boolean yes)
Enables or disables calculation of percentiles (the data values corresponding to a certain low and high percent bounds). |
void |
setPercents(double low,
double high)
Sets the percent bounds for percentile calculation. |
java.lang.String |
toString()
Returns a tab-separated multi-line textual representation of the histogram data. |
void |
update()
Should be overridden and call add( val ) if the user has specified the value to add. |
| Methods inherited from class com.xj.anylogic.engine.analysis.ChartItem |
|---|
getVersion |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public void reset()
public abstract void add(double val)
val - the sample valuepublic void update()
update in class ChartItempublic int getNumberOfIntervals()
public double getPDF(int index)
index - the index of the interval
public double getMaxPDF()
public double getCDF(int index)
index - the index of the interval
public StatisticsDiscrete getStatistics()
public int count()
public double mean()
public double min()
public double max()
public double deviation()
public double meanConfidence()
public void setCDFEnabled(boolean yes)
yes - yes if true, calculate CDFpublic boolean isCDFEnabled()
public void setPercentilesEnabled(boolean yes)
yes - if true, calculate percentilespublic boolean arePercentilesEnabled()
public void setPercents(double low,
double high)
low - the low percent boundhigh - the high percent boundpublic double getPercentLow()
public double getPercentHigh()
public abstract double getXMin()
public abstract double getXMax()
public java.lang.String toString()
toString in class java.lang.Objectpublic void destroyUpdater()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||