powered by
Perturbation of two compositions.
perturbation(x, y, ...)# S4 method for numeric,numeric perturbation(x, y)# S4 method for CompositionMatrix,numeric perturbation(x, y)# S4 method for CompositionMatrix,matrix perturbation(x, y)
# S4 method for numeric,numeric perturbation(x, y)
# S4 method for CompositionMatrix,numeric perturbation(x, y)
# S4 method for CompositionMatrix,matrix perturbation(x, y)
A numeric vector.
numeric
A numeric vector of compositional data or a CompositionMatrix object.
CompositionMatrix
Currently not used.
N. Frerebeau
In compositional geometry, perturbation plays the role of sum (translation). It is the closed component-wise product of two compositions.
Other operations in the simplex: arithmetic, closure(), powering(), scalar()
arithmetic
closure()
powering()
scalar()
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)
Run the code above in your browser using DataLab