apply.RAFSI | R Documentation |
Ranking of Alternatives through Functional mapping of criterion sub-intervals into a Single Interval (RAFSI)
apply.RAFSI(
mat,
weights,
beneficial.vector,
ideal = NULL,
anti_ideal = NULL,
n_i = 1,
n_k = 6
)
mat |
A numeric matrix or data frame with rows = alternatives, columns = criteria |
weights |
A numeric vector of weights (one per criterion) |
beneficial.vector |
A numeric vector that stores the column indices of all beneficial
(i.e., "max") criteria. Columns not in |
ideal |
A numeric vector of ideal values for each criterion (optional) |
anti_ideal |
A numeric vector of anti-ideal values for each criterion (optional) |
n_i |
Lower bound in the functional mapping (default = 1) |
n_k |
Upper bound in the functional mapping (default = 6) |
A numeric vector of final RAFSI scores, one per row of mat
.
mat <- matrix(c(3, 2, 5,
4, 3, 2,
1, 6, 4),
nrow = 3, byrow = TRUE)
weights <- c(0.3, 0.5, 0.2)
beneficial.vector <- c(1, 2)
apply.RAFSI(mat, weights, beneficial.vector, n_i = 1, n_k = 6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.