Skip to main content

Provides a moving average over a data set.

Project description

Module to compute the moving average of a list. For example:

from movingaverage import movingaverage print list(movingaverage([1,2,3,4,5,6], 3)) >>> [2,3,4,5]
movingaverage(data, sample_size):
Return the moving averages of the data, with a window size of sample_size. sample_size must be an integer greater than 0.

Project details


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