Internal normalize data function

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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.