normalize: Normalize vectors to norm 1

Description Usage Arguments Value Author(s) See Also Examples

View source: R/compositions.R

Description

Normalize vectors to norm 1.

Usage

1
2
3
normalize(x,...)
## Default S3 method:
normalize(x,...)

Arguments

x

a dataset or a single vector of some type

...

currently not used, intended to select a different norm in the future

Value

The vectors given, but normalized to norm 1.

Author(s)

K.Gerald v.d. Boogaart http://www.stat.boogaart.de

See Also

norm.rmult

Examples

1
2
3
4

compositions documentation built on May 30, 2017, 3:25 a.m.