uniform            package:hyperdirichlet            R Documentation

_A _u_n_i_f_o_r_m _D_i_r_i_c_h_l_e_t _d_i_s_t_r_i_b_u_t_i_o_n

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

     A uniform Dirichlet distribution

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

     uniform(n, pnames=NULL)

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

       n: The dimension of the distribution

  pnames: A character vector giving the names of the columns

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

     Returns a hyperdirichlet object corresponding to a uniform
     distribution

_A_u_t_h_o_r(_s):

     Robin K. S. Hankin

_S_e_e _A_l_s_o:

     'dirichlet'

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

     uniform(4)

     uniform(4) + dirichlet(1:4)   # identical (but the normalizing constant is lost)

     # Two ways to do the same thing:
     rhyperdirichlet(n=11, uniform(4))
     t(replicate(11,diff(c(0,sort(runif(3)),1))))

