rplusarithm | R Documentation |
The positive quadrant forms a manifold of the real vector space. The induced operations +,-,*,/ give results valued in this real vector space (not necessarily inside the manifold).
mul.rplus(x,r)
## Methods for class rplus
## x+y
## x-y
## -x
## x*r
## r*x
## x/r
x |
an rplus composition or dataset of compositions |
y |
an rplus composition or dataset of compositions |
r |
a numeric vector of size 1 or nrow(x) |
The functions behave quite like +.rmult
.
rmult
-objects containing the given operations on the rcomp
manifold as subset of the R^D
. Only the addition and
multiplication with positive numbers are internal
operation and results in an rplus
-object again.
For *
the arguments x and y can be exchanged.
K.Gerald v.d. Boogaart http://www.stat.boogaart.de
+.rmult
, +.acomp
,cpt
, rcomp
, rmult
rplus(1:5)* -1 + rplus(1:5)
data(SimulatedAmounts)
cdata <- rplus(sa.lognormals)
plot( tmp <- (cdata-mean(cdata))/msd(cdata) )
class(tmp)
mean(tmp)
msd(tmp)
var(tmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.