Moda Snapshot
The result of evaluating a MODA study, complete and standing on its own.
A model is live and mutable: defining more alternatives refits domains and changes every value it reports. A snapshot is taken once and does not change afterwards, so results can be held, compared, serialized, or read long after the model that produced them has been discarded.
Everything here is keyed by name rather than by metric, so nothing in a snapshot depends on object identity and it can be written out and read back without losing meaning. metrics and alternatives are in the order they were declared, so a report built from a snapshot presents them the way the study set them out rather than in whatever order a map happened to yield.
Constructors
Properties
How primaryRecommendation was arrived at.
The alternatives, in the order the study declared them.
The average of each alternative's ranks across the metrics.
How many metrics ranked each alternative first.
Indicates whether any metric turned out not to separate the alternatives.
The metrics, in the order the study declared them.
The weighted overall value of each alternative.
The alternative this study points to, under aggregationMethod.
How ties were handled when ranking.
The alternatives ordered best first under aggregationMethod, with ties broken by name so the order is the same every time it is asked for.
How repeated observations of each score were reduced to the single score compared here, or null when the scores were not observed repeatedly.
Anything worth reporting from evaluating the study, as ModaWarning rather than as text.
Functions
The record for the named metric, or null when the study had no such metric.
The metric rows this result would write, in the order the study declared its metrics.
The overall rows this result would write.
The rank-frequency rows this result would write, ordered by average rank as a model orders them, so the best-placed alternative comes first.
How the alternatives placed on each metric, in the order of alternatives.
Writes this result to a database holding the metric, score, value, overall and rank-frequency tables.