Normalize vectors to norm 1

Share:

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

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