nsimplex              package:combinat              R Documentation

_C_o_m_p_u_t_e_s _t_h_e _n_u_m_b_e_r _o_f _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

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

     Computes the number of points on a (p, n)-simplex lattice; that
     is, the number of p-part compositions of n. This gives the number
     of points in the support space of a Multinomial(n, q)
     distribution, where p == length(q).

     Arguments p and n are replicated as necessary to have the length
     of the longer of them.

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

     nsimplex(p, n)

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

       p: vector of integers 

       n: vector of integers 

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

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

     integer

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

     nsimplex(3,5)

