summaryrefslogtreecommitdiff
path: root/test/test_function.py
AgeCommit message (Collapse)Author
2021-12-29Use assert_allclose instead of assert_equal in tests to allow for different ↵gspr
floating point behavior on different architectures or optimization levels. (#49)
2018-09-19Fix incorrect integrals in PieceWiseLinFunc (#38)Mario Mulansky
Integrals of piece-wise linear functions were incorrect if the requested interval lies completely between two support points. This has been fixed, and a unit test exercising this behavior was added. Fixes #38
2018-07-21Fix incorrect integrals in PieceWiseConstFunc (#36)Jonathan Jouty
* 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
2015-05-17return correct values at exact spike timesMario Mulansky
pwc and pwl function object return the average of the left and right limit as function value at the exact spike times.
2015-05-13pwc function now returns intermediate value at exact spike timesMario Mulansky
2015-05-12+functions to obtain values of the pwc/pwl profileMario Mulansky
Added __call__ operators to PieceWiseConst and PieceWiseLin class for obtaining function values at certain points in time.
2015-01-28each function class in separate source fileMario Mulansky
2015-01-19fixed bug for multiple intervalsMario Mulansky
2015-01-19interval averages for discrete functionsMario Mulansky
2014-10-23support for multiple averaging intervalsMario Mulansky
2014-10-22avrg functions now take intervalsMario Mulansky
2014-10-22pwc avrg now takes intervalMario Mulansky
2014-10-16deleted abs_avrg testMario Mulansky
2014-10-15+average_profile functionMario Mulansky
2014-10-14changed isi distance profile to abs valuesMario Mulansky
2014-10-13changed to BSD licenseMario Mulansky
2014-10-13code formatting following PEP8Mario Mulansky
2014-10-10added License note in headersMario Mulansky
2014-09-29+mul_scalar, tests restructured and cosmeticsMario Mulansky
2014-09-27+ addition for piece wise linear function with testsMario Mulansky
2014-09-27added test for functions, bug fixes in addMario Mulansky