norm {compositions} | R Documentation |
Each of the considered space structures has an associated norm, which is computed for each element by these functions.
## 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,...)
X |
a dataset or a single vector of some type |
... |
currently not used, intended to select a different norm rule in the future |
The norms of the given vectors.
K.Gerald v.d. Boogaart http://www.stat.boogaart.de
data(SimulatedAmounts) tmp <- acomp(sa.lognormals) mvar(tmp) sum(norm( tmp - mean(tmp) )^2)/(nrow(tmp)-1)