Learn R Programming

hyperSpec (version 0.98-20150304)

normalize01: normalization for mixed colors

Description

Normalize numbers -> [0, 1]

Usage

normalize01(x, ...)
"normalize01"(x, tolerance = hy.getOption("tolerance"))
"normalize01"(x, tolerance = hy.getOption("tolerance"))
"normalize01"(x, ...)

Arguments

x
vector with values to transform
...
additional parameters such as tolerance handed down.
tolerance
tolerance level for determining what is 0 and 1

Value

vector with x values mapped to the interval [0, 1]

Details

The input x is mapped to [0, 1] by subtracting the minimum and subsequently dividing by the maximum. If all elements of x are equal, 1 is returned.

See Also

wl.eval, vanderMonde