CollisionMonteCarlo:

Path: FormationFlying/Collision

% Monte-Carlo analysis of collision probability
  Perform a Monte-Carlo analysis of a relative orbit dynamics simulation
  by applying random noise to the initial conditions.
  Any collisions, defines as separations within the physical dimenstion of  
  the spacecraft, are counted and used to create a "true" probability.

--------------------------------------------------------------------------
  Form:
  [prob,dMin,tMin,drH] = CollisionMonteCarlo( d, y0, aC, t, M )
--------------------------------------------------------------------------

   -------
   Inputs:
   -------
   d       (:)      Data structure, see CollisionMonAlg
   y0     (6,1)     Initial relative state                       [km, km/s]
   aC     (3,N)     [x;y;z] acceleration over N time intervals   [km/sec^2]
   t      (1,:)     Propagated time vector
   M      (1,:)     Osculating mean anomaly

   --------
   Outputs:
   --------

--------------------------------------------------------------------------