Skip to content

MatthewScholefield/lilist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A linear interpolation list class for Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages