utiml_normalize: Internal normalize data function

Description Usage Arguments Value Examples

View source: R/internal.R

Description

Internal normalize data function

Usage

1
utiml_normalize(data, max.val = NULL, min.val = NULL)

Arguments

data

a set of numbers.

max.val

The maximum value to normalize. If NULL use the max value present in the data. (default: NULL)

min.val

The minimum value to normalize. If NULL use the min value present in the data (default: NULL)

Value

The normalized data

Examples

1
2
3
4
5
6
7
8
## Not run: 
utiml_normalize(c(1,2,3,4,5))
#--> 0 0.25 0.5 0.75 1

utiml_normalize(c(1,2,3,4,5), 10, 0)
#--> 0.1 0.2 0.3 0.4 0.5

## End(Not run)

utiml documentation built on Aug. 1, 2017, 1:01 a.m.