Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

pylttb - downsampling of given series using Largest Triangle Three Buckets method.

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pylttb, version 0.1.9
Filename, size File type Python version Upload date Hashes
Filename, size pylttb-0.1.9.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page