rplusarithm           package:compositions           R Documentation

_A_r_i_t_h_m_e_t_i_k _o_f _r_p_l_u_s-_s_c_a_l_e

_D_e_s_c_r_i_p_t_i_o_n:

     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).

_U_s_a_g_e:

        x+y
        x-y
        -x
        x*r
        r*x
        x/r
     mul.rplus(x,r)

               

_A_r_g_u_m_e_n_t_s:

       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)

_D_e_t_a_i_l_s:

     The functions behave quite like '+.rmult'.

_V_a_l_u_e:

     '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.

_N_o_t_e:

     For '*' the arguments x and y can be exchanged.

_S_e_e _A_l_s_o:

     '+.rmult', '+.acomp','cpt', 'rcomp', 'rmult'

_E_x_a_m_p_l_e_s:

     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)

