zeroOne: Normalize 0 to 1

View source: R/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


tatters/soundgen documentation built on Aug. 22, 2023, 4:24 p.m.