lilist

A linear interpolation list class


License
MIT
Install
pip install lilist==0.1.0

Documentation

LiList

A linear interpolation list class for Python

This class implements a simple linear interpolation interface for python lists of numbers.

Usage

from lilist import LiList

l = LiList([0, 2, 2.1, 3.1])
assert l[0] == 0
assert l[1] == 2
assert l[0.5] == 1.0
assert l[2] == 2.1
assert l[1.5] == 2.05
assert l[2.1] == 2.2

Installation

pip install lilist