xsimplex              package:combinat              R Documentation

_G_e_n_e_r_a_t_e_s _a_l_l _p_o_i_n_t_s _o_n _a (_p,_n) _s_i_m_p_l_e_x _l_a_t_t_i_c_e (_i._e. _a _p-_p_a_r_t
_c_o_m_p_o_s_i_t_i_o_n _o_f _n).

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

     Generates all points on a {p,n} simplex lattice (i.e. a p-part
     composition of n).  Each point is represented as x, a
     p-dimensional vector of nonnegative integers that sum to n. If
     argument "fun" is not null,  applies a function given by the
     argument to each point.  If simplify is FALSE,  returns a list;
     else returns a vector or an array.  "..." are passed unchanged to
     function given by argument fun,  if any.

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

     xsimplex(p, n, fun=NULL, simplify=TRUE, ...)

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

       p: 

       n: 

     fun: 

simplify: 

     ...: 

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

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

_R_e_f_e_r_e_n_c_e_s:

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

     #Compute Multinomial(n = 4, pi = rep(1/3, 3)) p.f.:
        xsimplex(3, 4, dmnom, prob=1/3)

