diffusion              package:simecol              R Documentation

_A _R_a_n_d_o_m _W_a_l_k _P_a_r_t_i_c_l_e _D_i_f_f_u_s_i_o_n _M_o_d_e_l

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

     'simecol' example: This is a random walk (basic particle
     diffusion) model.

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

     data(diffusion)

_F_o_r_m_a_t:

     An S4 object according to the 'rwalkModel' specification.  The
     object contains the following slots:

     '_m_a_i_n' A function with the movement rules for the particles.

     '_p_a_r_m_s' A list with the following components:

          '_n_i_n_d_s' number of simulated particles,

          '_s_p_e_e_d' speed of the particles,

          '_a_r_e_a' vector with 4 elements giving the coordinates (left,
               bottom, right, top) of the coordinate system.

     '_t_i_m_e_s' Simulation time (discrete time steps, 'by'-argument
          ignored).

     '_i_n_i_t' Data frame holding the start properties (Cartesian
          coordinates 'x' and 'y' and movement angle 'a') of the
          particles.

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

     To see all details, please have a look into the implementation.

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

     'sim', 'parms', 'init', 'times'.

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

       ## Not run: 
         data(diffusion)
         plot(sim(diffusion))
         # show "grid of environmental conditions"
         image(inputs(diffusion))
         # set conditions to "1", i.e. remove "refuge" in the middle
         inputs(diffusion) <- matrix(1, 100, 100)
         plot(sim(diffusion))
       
     ## End(Not run)

