normalise | R Documentation |
Normalise points per coordinate to a range, e.g., c(1,2)
, where the
minimum value will correspond to 1 and the maximum to 2. If bounds are
given, they are used for the normalisation.
normalise(x, to_range = c(1, 2), lower = NA, upper = NA, maximise = FALSE)
x |
|
to_range |
|
lower , upper |
|
maximise |
|
matrix()
A numerical matrix
Manuel López-Ibáñez
data(SPEA2minstoptimeRichmond)
# The second objective must be maximized
head(SPEA2minstoptimeRichmond[, 1:2])
head(normalise(SPEA2minstoptimeRichmond[, 1:2], maximise = c(FALSE, TRUE)))
head(normalise(SPEA2minstoptimeRichmond[, 1:2], to_range = c(0,1), maximise = c(FALSE, TRUE)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.