zeroOne: Normalize 0 to 1

View source: R/utilities_math.R

zeroOneR Documentation

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, 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


soundgen documentation built on Aug. 14, 2022, 5:05 p.m.