norm {compositions}R Documentation

Vector space norm

Description

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

Usage

norm(x,...)
## 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

Value

The norms of the given vectors.

See Also

normalize

Examples

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


[Package compositions version 0.9-10 Index]