Companion

object Companion

Functions

Link copied to clipboard

Assigns a linear value function to each metric.

Link copied to clipboard

Creates a list of metrics with the supplied names. Each metric has the default settings.

Link copied to clipboard

Extracts the metrics associated with each score.

Link copied to clipboard

Extracts the values of each score

Link copied to clipboard

Creates a map of weights for each metric such that all weights are equal, and they sum to 1.0

Link copied to clipboard

Ranks the array elements from the largest as 1 and smallest as the size of the data array. using ordinal ranking.

Link copied to clipboard
fun readDataFrame(alternativeColumn: Int, metricColumns: IntArray, dataFrame: AnyFrame): Pair<Map<String, List<Score>>, List<Metric>>

The alternativeColumn is the column index for the data frame that represents the column holding the alternative names. The type of the column must be String. The array metricColumns holds the indices of the columns that hold the scores for each metric as Double values. Each of the metric columns must be of type Double. The dataFrame is processed by rows and the returned Map> hold the alternatives and their scores suitable for use in the defineAlternatives() method. The second element of the returned pair holds a list of metrics that were defined for each score. The user may want to change the mutable properties of the metrics before constructing a Map for use in the defineMetrics() method.