home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Educational / R-0.49-MI / R-0.49-I / help / base / Uniform < prev    next >
Encoding:
Text File  |  1997-04-23  |  823 b   |  32 lines

  1.     
  2.     _T_h_e _U_n_i_f_o_r_m _D_i_s_t_r_i_b_u_t_i_o_n
  3.     
  4.          dunif(x, min=0, max=1)
  5.          punif(q, min=0, max=1)
  6.          qunif(p, min=0, max=1)
  7.          runif(n, min=0, max=1)
  8.     
  9.     _D_e_s_c_r_i_p_t_i_o_n:
  10.     
  11.          These functions provide information about the uniform
  12.          distribution on the interval from min to max.  dunif
  13.          gives the density, punif gives the distribution func-
  14.          tion qunif gives the quantile function and runif gen-
  15.          erates random deviates.
  16.     
  17.          If min or max are not specified they assume the default
  18.          values of 0 and 1 respectively.
  19.     
  20.          The uniform distribution has density
  21.     
  22.                            f(x) = 1/(max-min)
  23.     
  24.          for min <= x <= max.
  25.     
  26.     _S_e_e _A_l_s_o:
  27.     
  28.     _E_x_a_m_p_l_e_s:
  29.     
  30.          var(runif(10000))#- ~ = 1/12 = .8333
  31.     
  32.