Skip to content

pylttb - an efficient implementation of Largest Triangle Three Buckets algorithm

Notifications You must be signed in to change notification settings

dexter2206/pylttb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pylttb: downsampling using Largest Triangle Threebuckets algorithm

License: MIT

pylttb is an efficient implementation of Largest Triangle Threebuckets algorithm.

The algorithm was described by Sveinn Steinarsson in his master thesis. More info and original implementation can be found at this page. The code in pylttb is based on this implementation but structures computations a bit differently to leverage numpy 's array arithmetics.

Usage example

Supposing you have arrays of x and y all you need to do to downsample them to given threshold is:

from pylttb import lttb

down_x, down_y = lttb(x, y, threshold)

About

pylttb - an efficient implementation of Largest Triangle Three Buckets algorithm

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages