nor.min.max: Function to normalize data to bring values into alignment....

Description Usage Arguments Value Author(s) Examples

View source: R/nor.min.max.R

Description

Function to normalize data to bring values into alignment. This function uses feature scaling to normalize values in a dataset between 0 and 1.

Usage

1

Arguments

x

An integer object of numeric value

Value

Returns a numeric value normalized between 0 and 1.

Author(s)

Peiyong Guan

Examples

1
2
3
4
5
6
7
8
# Load sample dataset
data(iris)
# View sample matrix
iris[1:5, 1:5]
# Coerce sample matrix to numeric values
iris <- t(apply(iris[, 1:4], 1, as.numeric))
#Normalize values in the matrix using the function
data.min.max <- t(apply(iris, 1, nor.min.max))

nlawlor/multiClust documentation built on May 16, 2019, 8:12 p.m.