normalize: Normalization

View source: R/normalize.R

normalizeR Documentation

Normalization

Description

Normalization of a variable:

  • type==1: ar normalized into [0,1],

  • type==2: ar is standardized,

  • otherwise no normalization is done.

Usage

normalize(ar, type = 1)

Arguments

ar

numeric variable.

type

integer: type of normalization (default: 1)

Details

Normalization of variable: ar<-(ar-min(ar))/(max(ar)-min(ar))

Value

Returns normalized variable.

Author(s)

Jaroslav Myslivec jaroslav.myslivec@upce.cz, Sigbert Klinke sigbert@hu-berlin.de

Examples

normalize(iris[,1])

andrews documentation built on Oct. 23, 2023, 5:08 p.m.