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


soundgen documentation built on April 4, 2025, 3:44 a.m.