-
Piotr Maślanka authoredd6d50d3d
firanka
firanka is a Python library to perform calculations on particular kinds of functions. These functions have a domain, which is a single continuous subset of the real number line. These functions can have any values.
firanka allows you do define two classes of such functions or series.
First are the DiscreteSeries. DiscreteSeries further divide the function domain into slices (left-closed, right-open) that have constant values. Manipulating DiscreteSeries and performing calculations on them is cheap.
Then you have FunctionSeries. These are simply defined by user-supplied Python callable.
Best part is, you can join series together (given a joining operator), slice them and so on.
Usage
Series
Can be imported from sai.series. A generic abstract superclass for series -
Series
can be imported for checking if given object is a series.