modaAnalysis

fun ReportBuilder.modaAnalysis(moda: MODAAnalyzer, caption: String? = null, confidenceLevel: Double = 0.95)(source)

Appends a self-contained section reporting a MODAAnalyzer result.

MODAAnalyzer.analyze must be called before invoking this function.

Produces (inside a section titled caption or "MODA Analysis"):

  1. Average PerformanceDataTable of mean observed values per alternative and response

  2. Average MODA Model — full moda section for the model built from averaged data, including metric definitions, scores/values, and rankings

  3. MCB for Overall MODA Value (when available)multipleComparison with direction = MAX (a higher MODA composite value is always better)

  4. MCB for Response Performance (when available) — one multipleComparison sub-section per response; direction follows the metric's MetricIfc.Direction

  5. MCB for Response MODA Values (when available) — one multipleComparison sub-section per response with direction = MAX (value-function outputs are always bigger-is-better)

  6. Overall Rank Frequencies (when replications exist) — one integerFrequency section per alternative showing how often each overall rank was achieved across replications

Usage:

moda.analyze()
val doc = report("System Comparison Study") {
modaAnalysis(moda, confidenceLevel = 0.95)
}
doc.showInBrowser()

Parameters

moda

the analyzer whose results will be reported; MODAAnalyzer.analyze must have been called first

caption

optional section title; defaults to "MODA Analysis"

confidenceLevel

confidence level for all MCB and screening tables; must be in (0, 1)