Takes a matrix
of fitness values and calculates the crowding distance for individuals in that matrix
.
Individuals that are minimal or maximal with respect to at least one dimension are assigned infinite crowding distance.
Individuals are assumed to be in a (epsilon-) nondominated front.
dist_crowding(fitnesses)
(numeric matrix
)
fitness matrix, with one row per individual and one column per objective
numeric
: Vector of crowding distances.