R/vector_toolkits.R
normalize_vector.Rd
normalization
normalize_vector(x, to_left = 0, to_right = 1)
A continuous numeric vector.
(optional) Specified minimum. Default is 0.
0
(optional) Specified maximum. Default is 1.
1
A continuous vector which has normalized.
normalize_vector(c(-5,1,5,0.01,0.99)) #> [1] 0.000 0.600 1.000 0.501 0.599