volume.ellipsoid           package:cluster           R Documentation

_C_o_m_p_u_t_e _t_h_e _V_o_l_u_m_e _o_f _P_l_a_n_a_r _O_b_j_e_c_t

_D_e_s_c_r_i_p_t_i_o_n:

     Compute the volume of a planar object. This is a generic function
     and a method for 'ellipsoid' objects.

_U_s_a_g_e:

     ## S3 method for class 'ellipsoid':
     volume(object)

_A_r_g_u_m_e_n_t_s:

  object: an R object the volume of which is wanted; for the
          'ellipsoid' method, an object of that class (see
          'ellipsoidhull' or the example below).

_V_a_l_u_e:

     a number, the volume of the given 'object'.

_S_e_e _A_l_s_o:

     'ellipsoidhull' for spanning ellipsoid computation.

_E_x_a_m_p_l_e_s:

     ## example(ellipsoidhull) # which defines `ellipsoid' object <namefoo>

     myEl <- structure(list(cov = rbind(c(3,1),1:2), loc = c(0,0), d2 = 10),
                        class = "ellipsoid")
     volume(myEl)# i.e. "area" here (d = 2)
     myEl # also mentions the "volume"

