modypy / modypy

A framework for hierarchical modelling, simulation and analysis of dynamic systems
https://modypy.org
BSD 2-Clause "Simplified" License
2 stars 1 forks source link

Implement dead-band for zero-crossing events #4

Closed ralfgerlich closed 3 years ago

ralfgerlich commented 3 years ago

Numerical inaccuraccies may lead to the value of an event function changing its sign just due to noise.

To avoid that, event values within a dead-band around zero should be considered to be zero. A sign change should only be considered when that clamped down value changes its sign.

The size of the dead-band should be configurable on the zero-crossing-event object,