DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR R
scale between 0 and 1 r
s = sort(rexp(100)) range01 <- function(x){(x-min(x))/(max(x)-min(x))} range01(s)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#scale
ADD COMMENT
Topic
COMMENT
Name
1+4 =
Submit