iFixit/graphite-web — pull request #1 by danielbeardsley (2012-11-03 12:14:47+00:00)
Title: Add functions resample() and smooth()

Functions: Add resample() for performance and sanity
* Drastically speeds up further calcuations on the returned series
* Makes it much easier to have a consistent datapoints / pixels ratio
for movingAverage() and friends.

Fucntions: add smooth() as a movingAverage over pixels
* Internally does a movingAverage(resample()).
* Provides consistent smoothing over a given number of graph pixels,
instead of a number of datapoints of arbitrary time width.
* Still provides consistent smoothing when there are fewer datapoints
than pixels.