norm: Vector space norm

Description Usage Arguments Value Author(s) See Also Examples

Description

Each of the considered space structures has an associated norm, which is computed for each element by these functions.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Default S3 method:
norm(X,...)
## S3 method for class 'acomp'
norm(X,...)
## S3 method for class 'rcomp'
norm(X,...)
## S3 method for class 'aplus'
norm(X,...)
## S3 method for class 'rplus'
norm(X,...)
## S3 method for class 'rmult'
norm(X,...)

          

Arguments

X

a dataset or a single vector of some type

...

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

Value

The norms of the given vectors.

Author(s)

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

See Also

normalize

Examples

1
2
3
4
data(SimulatedAmounts)
tmp <- acomp(sa.lognormals)
mvar(tmp)
sum(norm( tmp - mean(tmp) )^2)/(nrow(tmp)-1)

compositions documentation built on June 14, 2018, 5:03 p.m.