Learn R Programming

hyperSpec (version 0.98-20140523)

normalize01: Normalize numbers -> [0, 1]

Description

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.

Usage

## S3 method for class 'matrix':
normalize01(x,
    eps = .Machine$double.eps)

## S3 method for class 'numeric': normalize01(x, eps = .Machine$double.eps)

## S3 method for class 'hyperSpec': normalize01(x, ...)

Arguments

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

Value

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

See Also

wl.eval, vanderMonde