powered by
Each of the considered space structures has an associated norm, which is computed for each element by these functions.
# S3 method for default norm(X,…) # S3 method for acomp norm(X,…) # S3 method for rcomp norm(X,…) # S3 method for aplus norm(X,…) # S3 method for rplus norm(X,…) # S3 method for rmult norm(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.
normalize
# NOT RUN { data(SimulatedAmounts) tmp <- acomp(sa.lognormals) mvar(tmp) sum(norm( tmp - mean(tmp) )^2)/(nrow(tmp)-1) # }
Run the code above in your browser using DataLab