apply.RAFSI: Ranking of Alternatives through Functional mapping of...

View source: R/RAFSI.R

apply.RAFSIR Documentation

Ranking of Alternatives through Functional mapping of criterion sub-intervals into a Single Interval (RAFSI)

Description

Ranking of Alternatives through Functional mapping of criterion sub-intervals into a Single Interval (RAFSI)

Usage

apply.RAFSI(
  mat,
  weights,
  beneficial.vector,
  ideal = NULL,
  anti_ideal = NULL,
  n_i = 1,
  n_k = 6
)

Arguments

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 beneficial.vector are treated as "min".

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)

Value

A numeric vector of final RAFSI scores, one per row of mat.

Examples

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)

RMCDA documentation built on June 8, 2025, 11:14 a.m.