MathPHP\Statistics\AverageTest::dataProviderForSimpleMovingAverage PHP Метод

dataProviderForSimpleMovingAverage() публичный Метод

    public function dataProviderForSimpleMovingAverage()
    {
        return [[[1, 1, 2, 2, 3, 3], 2, [1, 1.5, 2, 2.5, 3]], [[10, 11, 11, 15, 13, 14, 12, 10, 11], 4, [11.75, 12.5, 13.25, 13.5, 12.25, 11.75]], [[11, 12, 13, 14, 15, 16, 17], 5, [13, 14, 15]], [[4, 6, 5, 8, 9, 5, 4, 3, 7, 8], 5, [6.4, 6.6, 6.2, 5.8, 5.6, 5.4]], [[43, 67, 57, 67, 4, 32, 34, 54, 93, 94, 38, 45], 6, [45, 43.5, 41.3333, 47.3333, 51.8333, 57.5, 59.6667]], [[5, 6, 7, 8, 9], 3, [6, 7, 8]]];
    }
AverageTest