rnd-methods             package:kappalab             R Documentation

_R_o_u_n_d_i_n_g _o_f _s_e_t _f_u_n_c_t_i_o_n _c_o_e_f_f_i_c_i_e_n_t_s

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

     Rounds the coefficients of a set function to the specified number
     of decimal places (default 0).

_M_e_t_h_o_d_s:



     _x = "_s_u_p_e_r_c_l_a_s_s._s_e_t._f_u_n_c", _d_i_g_i_t_s = "_n_u_m_e_r_i_c"  Returns an object
          of the same class as 'x' whose 'data' attribute is rounded.

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

     ## a capacity
     mu <- capacity(0:15/15)
     mu
     rnd(mu,2)

     ## a similar example with a Mobius.capacity object
     a <- Mobius(mu)
     a
     rnd(a,1)

     ## a similar example with a card.capacity object
     mu <- uniform.capacity(6)
     mu
     rnd(mu)

