This funtions performs a brownian difussion over a set of particles. The dimension is automatically calculated from the number of columns of the object.
diffusion(object, sd, ...)The positions of the particles, dimension is taken from the number of columns or assumed to be 1 is no columns.
Standard deviation for the gaussian jump, for dynamics models should be
set proportional to sqrt(dt).
Additional arguments for different methods.
This functions apply a brownian diffusion to a set of point coordinates.