- class probnum.diffeq.callbacks.DiscreteCallback(replace, condition)¶
Handle discrete events in an ODE solver.
A discrete event can be any event for which it is possible to write down a condition that evaluates to True or False. If a condition evaluates to True, the current state can be modified/replaced.
Modify a state whenever a condition dictates doing so.