normalize_to_min_0_max_1 {BallMapper} | R Documentation |
This function normalize each column (variable) of the input dataset so that the maximum is mapped to one, minimum to zero, and the intermediate values linearly to the appropriate points in the interval (0,1).
normalize_to_min_0_max_1(points)
points |
a collection of input points in a form of a data frame. |
Normalized collection of points.
var <- seq(from=0,to=6.3,by=0.1)
points <- as.data.frame( cbind( sin(var),cos(var) ) )
normalized_points <- normalize_to_min_0_max_1 (points)