L2.norm               package:Rtreemix               R Documentation

_L_2 _n_o_r_m _o_f _a _g_i_v_e_n _v_e_c_t_o_r

_D_e_s_c_r_i_p_t_i_o_n:

     A function for calculating the L2 norm of a given 'numeric
     vector'.

_U_s_a_g_e:

     L2.norm(x)

_A_r_g_u_m_e_n_t_s:

       x: A 'numeric' vector.

_V_a_l_u_e:

     The function returns the L2 norm of the given vector 'x'.

_A_u_t_h_o_r(_s):

     Jasmina Bogojeska

_S_e_e _A_l_s_o:

     'L1.dist'

_E_x_a_m_p_l_e_s:

     ## Define a numeric vector
     y <- c(1, 2, 3, 4)

     ## Calculate the L2 norm of the vector y
     L2.norm(y)

