statistics

fun ReportBuilder.statistics(stats: List<StatisticIfc>, caption: String? = null, confidenceLevel: Double = 0.95, detail: Boolean = false)(source)

Appends a single ksl.utilities.io.report.ast.ReportNode.StatTable for a list of StatisticIfc instances — the most common reporting case for across-replication summary statistics.

Unlike statistic, this does not wrap the table in a section; call it directly inside a section {} block when grouping is already handled by the caller.

Usage:

val doc = report("Simulation Results") {
section("Across-Replication Statistics") {
statistics(model.simulationReporter.acrossReplicationStatisticsList())
}
}

Parameters

stats

statistics to tabulate; empty list is silently ignored

caption

optional caption displayed above the table

confidenceLevel

confidence level for half-width and CI columns; must be in (0, 1)

detail

false (default) = compact summary; true = compact + diagnostic table