queue                  package:pad                  R Documentation

_P_A_D  -  _S_i_m_u_l_a_t_i_o_n _o_f _a _Q_u_e_u_e_i_n_g _p_r_o_c_e_s_s

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

     This function simulates a stochastic process describing number of
     subjects in a queue.

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

     queue(lambda, rho, n, plot = TRUE)

     ## S3 method for class 'queue':
     plot(x, ...)

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

  lambda: a numeric values for the arrival parameter. If not provided,
          a prompt is issue. 

     rho: a numeric value for the services parameter. If not provided,
          a prompt is issue. 

       n: an integer value of the number of arrivals. If not provided,
          a prompt is issue. 

    plot: logical. If 'TRUE' plot is automaticaly produced.  

       x: an output of the function 'queue'.  

     ...: unused.

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

     The function 'queue' returns  a (2n+1) x 2 matrix with columns
     corresponding to cumulative times and number in the queue
     respectively. The class 'queue' is assigned.

     The function 'plot.queue' takes an object of the class 'queue' and
     produces a plot of numbers \em{vs} times.

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

     Peter J. Diggle p.diggle@lancaster.ac.uk 
      Paulo Justiniano Ribeiro Jr. p.ribeiro@lancaster.ac.uk.

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

     queue(20, 20, 200)
     q1 <- queue(.6, .5, 50, plot = FALSE) 
     q1
     plot(q1)
     # For an interactive input type:
     ## Not run: 
     queue()
     ## End(Not run)

