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 / Exponential < prev    next >
Encoding:
Text File  |  1997-04-23  |  990 b   |  44 lines

  1.     
  2.     _T_h_e _E_x_p_o_n_e_n_t_i_a_l _D_i_s_t_r_i_b_u_t_i_o_n
  3.     
  4.          dexp(x, rate=1)
  5.          pexp(q, rate=1)
  6.          qexp(p, rate=1)
  7.          rexp(n, rate=1)
  8.     
  9.     _A_r_g_u_m_e_n_t_s:
  10.     
  11.              x,q : vector of quantiles.
  12.     
  13.                p : vector of probabilities.
  14.     
  15.                n : number of observations to generate.
  16.     
  17.             rate : vector of rates.
  18.     
  19.     _V_a_l_u_e:
  20.     
  21.          These functions provide information about the exponen-
  22.          tial distribution with rate rate (i.e. mean 1/rate).
  23.          dexp gives the density, pexp gives the distribution
  24.          function qexp gives the quantile function and rexp gen-
  25.          erates random deviates.
  26.     
  27.          The exponential distribution with rate lambda has den-
  28.          sity
  29.     
  30.                        f(x) = lambda e^-(lambda x)
  31.     
  32.          for x >= 0.
  33.     
  34.     _S_e_e _A_l_s_o:
  35.     
  36.          exp.
  37.     
  38.     _E_x_a_m_p_l_e_s:
  39.     
  40.          dexp(1) - exp(-1) #-> 0
  41.          r <- rexp(100)
  42.          all(abs(1 - dexp(1, r) / (r*exp(-r))) < 1e-14)
  43.     
  44.