diagnosticStatRows

fun diagnosticStatRows(stats: List<StatisticIfc>, fmt: (Double) -> String, fmtCount: (Double) -> String = fmt): List<List<String>>(source)

Builds the diagnostic row data for the extended ReportNode.StatTable view (appended when ReportNode.StatTable.detail is true).

Each element aligns column-for-column with DIAGNOSTIC_STAT_HEADERS.

Return

one row per statistic; each row aligns with DIAGNOSTIC_STAT_HEADERS

Parameters

stats

statistics to tabulate

fmt

renderer-supplied formatting function for Double values

fmtCount

formatting function for the Missing column; by default fmt