Parameter estimation for dynamical systems with discrete events and logical operations