graphite-project/graphite-web — pull request #92 by danielbeardsley (2012-11-04 07:14:13+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.

Functions: 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.