double function ( double arg0 , double arg1 ) { double loc0 = Math . abs ( arg0 - arg1 ) ; return a . getParameter ( ) * Math . exp ( - b . getParameter ( ) * loc0 ) ; }
calculate the repulsive effect that a predator has on a prey . the influence of the predator grows exponentially with proximity . concode_field_sep VelocityProvider delegate concode_elem_sep ControlParameter acceleration concode_elem_sep ControlParameter a concode_elem_sep ControlParameter b concode_elem_sep ControlParameter fear concode_field_sep PreyVelocityProvider getClone concode_elem_sep void setB concode_elem_sep Vector get concode_elem_sep void setFear concode_elem_sep void setA concode_elem_sep List<Particle> getPredators concode_elem_sep void setDelegate