Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
# Original averaging code from Zed Shaw's Stats class. | |
# Moving average code by Drew Yeaton. | |
from math import sqrt | |
from collections import deque | |
class SimpleAverage(object): | |
def __init__(self, sum=0.0, sumsq=0.0, n=0, minimum=0, maximum=0.0): |