dbIntegerFrequency

fun ReportBuilder.dbIntegerFrequency(freqName: String, cellRows: List<FrequencyTableData>, caption: String? = null, showPlot: Boolean = true)(source)

Appends a single integer-frequency sub-section for one response from the database.

Produces (inside a section titled freqName):

  1. A data table ("Frequency Table") with columns: Value | Label | Count | Cum Count | % | Cum %

  2. A frequency bar-chart plot (when showPlot is true)

Parameters

freqName

the frequency response name used as the section title

cellRows

the FrequencyTableData rows for this response; must be non-empty

caption

optional section title override; defaults to freqName

showPlot

when true (default) a bar-chart plot is appended


fun ReportBuilder.dbIntegerFrequency(db: KSLDatabase, expName: String, name: String, showPlot: Boolean = true)(source)

Appends a single integer-frequency section for one in-simulation ksl.modeling.variable.IntegerFrequencyResponse, fetched from the database by name.

Convenience overload of the row-taking dbIntegerFrequency: it fetches the FREQUENCY rows for name in expName via KSLDatabase.frequencyDataFor and delegates. When the experiment has no frequency data for that name, a notice section is emitted instead of throwing.

Parameters

db

the database to query

expName

the experiment whose frequency data is used

name

the frequency response name (the name column)

showPlot

when true (default) a frequency bar-chart plot is appended