powered by
Operators performing operations in the simplex.
x %perturbe% yx %power% y# S4 method for CompositionMatrix,CompositionMatrix %perturbe%(x, y)# S4 method for CompositionMatrix,numeric %power%(x, y)# S4 method for numeric,CompositionMatrix %power%(x, y)
x %power% y
# S4 method for CompositionMatrix,CompositionMatrix %perturbe%(x, y)
# S4 method for CompositionMatrix,numeric %power%(x, y)
# S4 method for numeric,CompositionMatrix %power%(x, y)
A CompositionMatrix object or a numeric vector (same as x).
CompositionMatrix
numeric
x
A CompositionMatrix object.
A CompositionMatrix object or a numeric vector.
N. Frerebeau
%perturbe%
Perturbation operation.
%power%
Powering operation.
Other operations in the simplex: closure(), perturbation(), powering(), scalar()
closure()
perturbation()
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