Scalar Product
Computes the Aitchison scalar product of two compositions. methods
scalar(x, y, ...) ## S4 method for signature 'numeric,numeric' scalar(x, y) ## S4 method for signature 'CompositionMatrix,CompositionMatrix' scalar(x, y)
x, y
: A CompositionMatrix
object....
: Currently not used.A numeric
vector.
x <- as_composition(c(1, 2, 3)) y <- as_composition(c(1, 2, 1)) ## Perturbation perturbation(x, y) x + y ## Powering powering(y, 2) y * 2 ## Scalar product scalar(x, y)
Other operations in the simplex: arithmetic
, closure()
, perturbation()
, powering()
N. Frerebeau
Useful links