Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

norm

Vector space norm


Description

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

Usage

## 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,...)
## 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. ATTENTON: norm.matrix is a wrapper around base::norm

Author(s)

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

See Also

Examples

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

compositions

Compositional Data Analysis

v2.0-1
GPL (>= 2)
Authors
K. Gerald van den Boogaart <boogaart@hzdr.de>, Raimon Tolosana-Delgado, Matevz Bren
Initial release
2021-01-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.