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 intervals
- initialIntervalWidth- the initial data range corresponding to one interval
- calcCDF- if- true, CDF is calculated
- calcPercentiles- if- trueand calcCDF is- true, percentiles are calculated
- lowPercent- the low percent bound
- highPercent- 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 intervals
- initialIntervalWidth- the initial data range corresponding to one interval
- calcCDF- if- true, CDF is calculated
- calcPercentiles- if- trueand calcCDF is- true, percentiles are calculated
- lowPercent- the low percent bound
- highPercent- the high percent bound
- updater- updater which may be used instead of overriding- HistogramData.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 class- HistogramData
public void add(double val) 
Adds a sample data item to the histogram data object.
- Specified by:
- addin class- HistogramData
- Parameters:
- val- the sample value
public double getIntervalWidth()
Returns the current interval width, i.e. the data range corresponding to one interval.
- Overrides:
- getIntervalWidthin class- HistogramData
- 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 class- HistogramData
- 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 class- HistogramData
- Returns:
- the upper bound of the range covered by intervals