class TimeSeriesUtilities {

    public static double[] simpleMovingAverage(final double[] data, final int window) {
        double[] average = new double[data.length - window + 1];
        simpleMovingAverage(data, window, average);
        return average;
    }

}