PhpBench\Tests\Unit\Math\StatisticsTest::testHistogram PHP Метод

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

It should return histogram data.
public testHistogram ( array $data, $steps, $lower, $upper, array $expected )
$data array
$expected array
    public function testHistogram(array $data, $steps, $lower, $upper, array $expected)
    {
        $result = Statistics::histogram($data, $steps, $lower, $upper);
        $this->assertEquals($expected, $result);
    }