Description Usage Arguments Details Value Note Author(s) See Also Examples

The real compositions form a manifold of the real vector space. The induced operations +,-,*,/ give results valued in the real vector space, but possibly outside the simplex.

1 2 3 4 5 6 7 8 9 | ```
convex.rcomp(x,y,alpha=0.5)
## Methods for class "rcomp"
## x+y
## x-y
## -x
## x*r
## r*x
## x/r
``` |

`x` |
an rcomp composition or dataset of compositions |

`y` |
an rcomp composition or dataset of compositions |

`r` |
a numeric vector of size 1 or nrow(x) |

`alpha` |
a numeric vector of size 1 or nrow(x) with values between 0 and 1 |

The functions behave quite like `+.rmult`

.

The convex combination is defined as: `x*alpha + (1-alpha)*y`

`rmult`

-objects containing the given operations on the simplex
as subset of the *R^D*. Only the convex combination
`convex.rcomp`

results in an `rcomp`

-object again, since
only this operation is closed.

For `*`

the arguments x and y can be exchanged.

K.Gerald v.d. Boogaart http://www.stat.boogaart.de

`+.rmult`

, `+.acomp`

,`cpt`

, `rcomp`

, `rmult`

1 2 3 4 5 6 7 8 9 | ```
rcomp(1:5)* -1 + rcomp(1:5)
data(SimulatedAmounts)
cdata <- rcomp(sa.lognormals)
plot( tmp <- (cdata-mean(cdata))/msd(cdata) )
class(tmp)
mean(tmp)
msd(tmp)
var(tmp)
plot(convex.rcomp(rcomp(c(1,1,1)),sa.lognormals,0.1))
``` |

compositions documentation built on June 14, 2018, 5:03 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.