arithmetic | R Documentation |
Operators performing operations in the simplex.
x %perturbe% y
x %power% y
## S4 method for signature 'CompositionMatrix,CompositionMatrix'
x %perturbe% y
## S4 method for signature 'CompositionMatrix,numeric'
x %power% y
## S4 method for signature 'numeric,CompositionMatrix'
x %power% y
x |
A |
y |
A |
%perturbe%
Perturbation operation.
%power%
Powering operation.
A CompositionMatrix
object or a numeric
vector (same as x
).
N. Frerebeau
Other operations in the simplex:
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.