MODAReportData

The plain, name-keyed data an AdditiveMODAModel report section needs.

AdditiveMODAModel produces one of these via modaReportData; a reconstructed/serialized result can implement it directly, so the same moda report extension renders from either source. Unlike the live model's accessors, the maps here are keyed by metric name (not MetricIfc) and the ranking projections are already materialized using the model's configured ranking method — so this holder carries no behavior, only data.

All per-metric maps are keyed by the entries of metricNames; each value list is aligned with alternatives by index.

Properties

Link copied to clipboard
abstract val alternatives: List<String>

The alternatives, in model order. Indexes the per-metric value lists.

Link copied to clipboard
abstract val firstRankCounts: Map<String, Int>

First-rank count per alternative.

Link copied to clipboard
abstract val metricData: List<MetricData>

The metric definitions (name, direction, weight, domain, units, description).

Link copied to clipboard
abstract val metricNames: List<String>

The metric names, in model order. Keys the per-metric maps.

Link copied to clipboard
abstract val name: String

The model name, used as the default report section title.

Link copied to clipboard

Per-metric ranks per metric name; aligned with alternatives.

Link copied to clipboard

Raw scores per metric name; each list aligned with alternatives by index.

Link copied to clipboard

(alternative, average rank), lowest average rank first.

Link copied to clipboard

(alternative, overall weighted value), best-first.

Link copied to clipboard

Transformed value-function outputs per metric name; aligned with alternatives.