arithmetic {nexus} | R Documentation |
Operations in the Simplex
Description
Operators performing operations in the simplex.
Usage
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
Arguments
x |
A |
y |
A |
Details
%perturbe%
%power%
Value
A CompositionMatrix
object or a numeric
vector (same as x
).
Author(s)
N. Frerebeau
See Also
Other operations in the simplex:
closure()
,
perturbation()
,
powering()
,
scalar()
Examples
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)
[Package nexus version 0.2.0 Index]