compactStatRows

fun compactStatRows(stats: List<StatisticIfc>, confidenceLevel: Double, fmt: (Double) -> String): List<List<String>>(source)

Builds the compact row data for a ReportNode.StatTable.

Each element of the returned list corresponds to one statistic and aligns column-for-column with COMPACT_STAT_HEADERS. The confidenceLevel parameter is used to compute StatisticIfc.halfWidth and StatisticIfc.confidenceInterval without mutating any state on the statistic object.

Return

one row per statistic; each row aligns with COMPACT_STAT_HEADERS

Parameters

stats

statistics to tabulate

confidenceLevel

confidence level for half-width and CI columns

fmt

renderer-supplied formatting function for Double values (typically ksl.utilities.io.report.renderer.RenderContext.fmt)