diff options
author | Jonathan Jouty <jonathanjouty@users.noreply.github.com> | 2018-07-22 02:50:17 +0200 |
---|---|---|
committer | Mario Mulansky <mario.mulansky@gmx.net> | 2018-07-21 17:50:17 -0700 |
commit | 5178df8d74bcdde310f8007ac891dd8a1bf4a9d2 (patch) | |
tree | 29fe39f1c571f0e620428f28cd84f66867852252 /pyspike/PieceWiseLinFunc.py | |
parent | 8d707522865627dfb74b11cb1a36464a6047be56 (diff) |
Fix incorrect integrals in PieceWiseConstFunc (#36)
* Add (some currently failing) tests for PieceWiseConstFunc.integral
* Fix implementation of PieceWiseConstFunc.integral
Just by adding a special condition for when we are only taking an
integral "between" two edges of a PieceWiseConstFunc
All tests now pass.
Fixes #33.
* Add PieceWiseConstFunc.integral tests for ValueError
* Add testing bounds of integral
* Raise ValueError in function implementation
Diffstat (limited to 'pyspike/PieceWiseLinFunc.py')
0 files changed, 0 insertions, 0 deletions