zeroOne {soundgen} | R Documentation |
Internal soundgen function
zeroOne(x, na.rm = FALSE, xmin = NULL, xmax = NULL)
x |
numeric vector or matrix |
na.rm |
if TRUE, remove NA's when calculating min/max for normalization |
xmin , xmax |
min and max (to save time if already known) |
Normalized input vector to range from 0 to 1