Id: | piecewise.py |
---|---|
Author: | Philippe Guglielmetti <drgoulu@gmail.com> |
Copyright: | 2013 Philippe Guglielmetti |
Licence: | GNU Lesser General Public Licence (LGPL) |
Synposis: | Piecewise defined function |
Bases: object
piecewise function defined by a sorted list of (startpoint,value)
appends a (x,y) item. In fact inserts it at correct position and returns the corresponding index
list of weak references to the object (if defined)