normalize {compositions}R Documentation

Normalize vectors to norm 1

Description

Normalize vectors to norm 1.

Usage

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

Value

The vectors given, but normalized to norm 1.

See Also

norm

Examples

data(SimulatedAmounts)
normalize(c(1,2,3))
normalize(acomp(c(1,2,3)))
norm(normalize(acomp(sa.groups)))

[Package compositions version 0.9-10 Index]