Learn R Programming

soundgen (version 2.7.0)

zeroOne: Normalize 0 to 1

Description

Internal soundgen function

Usage

zeroOne(x, na.rm = FALSE, xmin = NULL, xmax = NULL)

Arguments

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)

Details

Normalized input vector to range from 0 to 1