DiscreteCallback

class probnum.diffeq.callbacks.DiscreteCallback(replace, condition)

Bases: probnum.diffeq.callbacks.ODESolverCallback

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.

Methods Summary

__call__(state)

Modify a state whenever a condition dictates doing so.

Methods Documentation

__call__(state)[source]

Modify a state whenever a condition dictates doing so.

Return type

ODESolverState