def _moving_average(a, axis=0, window=10):
    ret = np.cumsum(a, dtype=np.float64, axis=axis)
    ret[window:] = ret[window:] - ret[:-window]
    return ret[window - 1:] / window
dataset/ETHPy150Open slinderman/pyhawkes/baselines/xcorr.py/_moving_average/original