hcube                package:combinat                R Documentation

_G_e_n_e_r_a_t_e _a_l_l _p_o_i_n_t_s _o_n _a _h_y_p_e_r_c_u_b_o_i_d _l_a_t_t_i_c_e.

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

     Generate all points on a hypercuboid lattice.

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

     hcube(x, scale, translation)

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

       x: Argument x is an integer vector giving the extent of each
          dimension; the number of dimensions is length(x). 

   scale: Argument scale is a vector of real numbers giving an amount
          by which to multiply the points in each dimension;  it will
          be replicated as necessary to have the same length as x. 

translation: Argument translate is a vector of real numbers giving an
          amount to translate (from the "origin", rep(1,length(x))) the
          points in each dimension;  it will be replicated as necessary
          to have the same length as x.  To use rep(0,length(x)) as the
          origin,  use translation = -1.  Scaling,  if any,  is done
          BEFORE translation. 

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

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

     A prod(x) by length(x) numeric matrix;  element (i,j) gives the
     location of point i in the jth dimension.  The first column
     (dimension) varies most rapidly.

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

     code by Scott Chasalow, R pack and maint by VJ Carey
     <stvjc@channing.harvard.edu>

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

     ~put references to the literature/web site here ~

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

     fac.design, expand.grid

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

