powering {nexus} | R Documentation |
Powering Operation
Description
Perturbation of two compositions.
Usage
powering(x, a, ...)
## S4 method for signature 'numeric,numeric'
powering(x, a)
## S4 method for signature 'CompositionMatrix,numeric'
powering(x, a)
Arguments
x |
A |
a |
A |
... |
Currently not used. |
Details
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.
Value
A numeric
vector.
Author(s)
N. Frerebeau
See Also
Other operations in the simplex:
arithmetic
,
closure()
,
perturbation()
,
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]