zeroOne: Normalize 0 to 1
Description
Internal soundgen function
Usage
zeroOne(x, na.rm = FALSE, xmin = NULL, xmax = NULL)
Arguments
na.rm
if TRUE, removed NA's when calculating min/max for normalization
xmin, xmax
min and max (to save time if already known)
Details
Normalized input vector to range from 0 to 1