norm              package:compositions              R Documentation

_V_e_c_t_o_r _s_p_a_c_e _n_o_r_m

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

     Each of the considered space structures has an associated norm,
     which is computed for each element by these functions.

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

     norm(x,...)
     ## Default S3 method:
     norm(x,...)
     ## S3 method for class 'acomp':
     norm(x,...)
     ## S3 method for class 'rcomp':
     norm(x,...)
     ## S3 method for class 'aplus':
     norm(x,...)
     ## S3 method for class 'rplus':
     norm(x,...)
     ## S3 method for class 'rmult':
     norm(x,...)

               

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

       x: a dataset or a single vector of some type

     ...: currently not used, intended to select a different norm

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

     The norms of the given vectors.

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

     'normalize'

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

     data(SimulatedAmounts)
     tmp <- acomp(sa.lognormals)
     mvar(tmp)
     sum(norm( tmp - mean(tmp) )^2)/(nrow(tmp)-1)

