class IMSLinearRegression {

    public static double predict(List<Long> input, int numberOfLastItems)
    {
        double[] _input = new double[numberOfLastItems];
        for (int i = _input.length - numberOfLastItems; i < _input.length; i++)
        {
            _input[i] = input.get(i);
        }
        return predict(_input);
    }

    private  IMSLinearRegression();

}