Last chance! 50% off unlimited learning
Sale ends in
Perturbation of two compositions.
powering(x, a, ...)# S4 method for numeric,numeric
powering(x, a)
# S4 method for CompositionMatrix,numeric
powering(x, a)
A numeric
vector.
N. Frerebeau
In compositional geometry, powering replaces the product of a vector by a scalar (scaling) and is defined as the closed powering of the components by a given scalar.
Other operations in the simplex:
arithmetic
,
closure()
,
perturbation()
,
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