|
||||||||||
| 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
com.xj.anylogic.engine.analysis.HistogramSmartData
public class HistogramSmartData
Data of a histogram with a fixed number of intervals but auto-adjustable data range. The data range covered by the intervals always includes the full range of data samples added.
| Constructor Summary | |
|---|---|
HistogramSmartData(int nIntervals,
double initialIntervalWidth,
boolean calcCDF,
boolean calcPercentiles,
double lowPercent,
double highPercent)
Constructs a smart histogram data object with the given number of intervals and initial interval width. |
|
HistogramSmartData(int nIntervals,
double initialIntervalWidth,
boolean calcCDF,
boolean calcPercentiles,
double lowPercent,
double highPercent,
DataUpdater updater)
Constructs a smart histogram data object with the given number of intervals and initial interval width. |
|
| Method Summary | |
|---|---|
void |
add(double val)
Adds a sample data item to the histogram data object. |
double |
getIntervalWidth()
Returns the current interval width, i.e. the data range corresponding to one interval. |
double |
getLowerBound()
Returns the lower bound of the range covered by intervals. |
double |
getXMax()
Returns the upper bound of the range covered by intervals. |
double |
getXMin()
Returns the lower bound of the range covered by intervals. |
void |
reset()
Fully resets the histogram data object: discards all PDF/CDF data and statistics; also restores the initial interval width. |
| Methods inherited from class com.xj.anylogic.engine.analysis.HistogramData |
|---|
arePercentilesEnabled, count, destroyUpdater, deviation, getCDF, getMaxPDF, getNumberOfIntervals, getPDF, getPercentHigh, getPercentLow, getStatistics, isCDFEnabled, max, mean, meanConfidence, min, setCDFEnabled, setPercentilesEnabled, setPercents, toString, update |
| 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 |
| Constructor Detail |
|---|
public HistogramSmartData(int nIntervals,
double initialIntervalWidth,
boolean calcCDF,
boolean calcPercentiles,
double lowPercent,
double highPercent)
nIntervals - the number of intervalsinitialIntervalWidth - the initial data range corresponding to one intervalcalcCDF - if true, CDF is calculatedcalcPercentiles - if true and calcCDF is true, percentiles are calculatedlowPercent - the low percent boundhighPercent - the high percent bound
public HistogramSmartData(int nIntervals,
double initialIntervalWidth,
boolean calcCDF,
boolean calcPercentiles,
double lowPercent,
double highPercent,
DataUpdater updater)
nIntervals - the number of intervalsinitialIntervalWidth - the initial data range corresponding to one intervalcalcCDF - if true, CDF is calculatedcalcPercentiles - if true and calcCDF is true, percentiles are calculatedlowPercent - the low percent boundhighPercent - the high percent boundupdater - updater which may be used instead of overriding
HistogramData.update() method| Method Detail |
|---|
public void reset()
reset in class HistogramDatapublic void add(double val)
add in class HistogramDataval - the sample valuepublic double getIntervalWidth()
public double getLowerBound()
public double getXMin()
getXMin in class HistogramDatapublic double getXMax()
getXMax in class HistogramData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||