DbHistogramPlotData

A HistogramPlotDataIfc backed by a list of HistogramBinData rows retrieved from the KSL database (table tblHistogram).

The constructor sorts rows by HistogramBinData.binNum so that the ordering contract of HistogramPlotDataIfc is satisfied regardless of the order in which the database returns rows.

min and max default to the lower limit of the first bin and the upper limit of the last bin respectively. These values are used only to clamp an infinite bin boundary in HistogramPlot; database-sourced histograms always have finite limits, so the clamping branch is never reached.

Parameters

rows

histogram bin records from the database; may be in any order

Constructors

Link copied to clipboard
constructor(rows: List<HistogramBinData>)

Properties

Link copied to clipboard
open override val binCounts: DoubleArray

Raw count of observations in each bin.

Link copied to clipboard
open override val binFractions: DoubleArray

Proportion of observations in each bin (counts divided by total).

Link copied to clipboard
open override val lowerLimits: DoubleArray

Lower boundary of each bin, in ascending order.

Link copied to clipboard
open override val max: Double

Maximum observed value. Used by HistogramPlot to substitute a concrete upper bound when upperLimits.last() is infinite.

Link copied to clipboard
open override val min: Double

Minimum observed value. Used by HistogramPlot to substitute a concrete lower bound when lowerLimits.first() is infinite.

Link copied to clipboard
open override val upperLimits: DoubleArray

Upper boundary of each bin, in ascending order.