of
fun of(model: AdditiveMODAModel, rankTieMethod: Statistic.Companion.Ranking = model.defaultRankingMethod, aggregation: AggregationMethod = AggregationMethod.WEIGHTED_VALUE, replicationAggregation: String? = null): ModaSnapshot(source)
Takes a snapshot of model as it currently stands.
Built from an additive model rather than from any MODA model, because the weights and the weighted values a snapshot records are that model's, not every model's.
Where alternatives tie on whatever aggregation compares, the recommendation is the first by name. Some alternative has to be named, and choosing by name means the same study recommends the same one every time rather than depending on map ordering.
Parameters
model
the model to record. It is only read.
rank Tie Method
how to handle ties when ranking, defaulting to the model's own
aggregation
how to arrive at a single recommendation