Learn R Programming

STPGA (version 5.2.1)

disttoideal: Calculate the distance of solutions from the 'ideal' solution.

Description

This function calculates the distance of X to the vector of the minimums of columns of X after transforming the variables in X to the interval \([0,1]\).

Usage

disttoideal(X)

Arguments

X

A matrix of the criteria values. One solution each row, columns correspond to the different criteria.

Value

Vector of distances elements corresponding to each row of X