Package com.anylogic.engine.analysis
- java.lang.Object
- com.anylogic.engine.analysis.ChartItem
- com.anylogic.engine.analysis.HistogramData
- com.anylogic.engine.analysis.HistogramSmartData
- All Implemented Interfaces:
Serializable
public class HistogramSmartData extends HistogramData
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.
- Author:
- AnyLogic North America, LLC https://anylogic.com
- See Also:
- Serialized Form
| Constructor | Description |
|---|---|
HistogramSmartData |
Constructs a smart histogram data object with the given number of intervals
and initial interval width.
|
HistogramSmartData |
Constructs a smart histogram data object with the given number of intervals
and initial interval width.
|
| Modifier and Type | Method | Description |
|---|---|---|
void | add |
Adds a sample data item to the histogram data object.
|
double | getIntervalWidth() |
Returns the current interval width, i.e.
|
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.
|
arePercentilesEnabled, count, destroyUpdater_xjal, deviation, getCDF, getMaxPDF, getNumberOfIntervals, getPDF, getPercentHigh, getPercentLow, getPlainDataTable, getStatistics, isCDFEnabled, max, mean, meanConfidence, min, setCDFEnabled, setPercentilesEnabled, setPercents, toString, updatepublic 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.
- Parameters:
nIntervals- the number of intervalsinitialIntervalWidth- the initial data range corresponding to one intervalcalcCDF- iftrue, CDF is calculatedcalcPercentiles- iftrueand calcCDF istrue, 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_xjal updater)
Constructs a smart histogram data object with the given number of intervals
and initial interval width.
- Parameters:
nIntervals- the number of intervalsinitialIntervalWidth- the initial data range corresponding to one intervalcalcCDF- iftrue, CDF is calculatedcalcPercentiles- iftrueand calcCDF istrue, percentiles are calculatedlowPercent- the low percent boundhighPercent- the high percent boundupdater- updater which may be used instead of overridingHistogramData.update()method
public void reset()
Fully resets the histogram data object: discards all PDF/CDF data and statistics;
also restores the initial interval width.
- Overrides:
resetin classHistogramData
public void add(double val)
Adds a sample data item to the histogram data object.
- Specified by:
addin classHistogramData- Parameters:
val- the sample value
public double getIntervalWidth()
Returns the current interval width, i.e. the data range corresponding to one interval.
- Overrides:
getIntervalWidthin classHistogramData- Returns:
- the current interval width
public double getLowerBound()
Returns the lower bound of the range covered by intervals. It is less or equal to
the minimum of all data samples.
- Returns:
- the lower bound of the range covered by intervals
public double getXMin()
Returns the lower bound of the range covered by intervals.
- Specified by:
getXMinin classHistogramData- Returns:
- the lower bound of the range covered by intervals
public double getXMax()
Returns the upper bound of the range covered by intervals.
- Specified by:
getXMaxin classHistogramData- Returns:
- the upper bound of the range covered by intervals