NumPHPTest\Core\NumArray\Reduce\MeanTest::testMeanMatrixAxis0 PHP Метод

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

Tests NumArray::mean with a matrix and with argument 0
public testMeanMatrixAxis0 ( )
    public function testMeanMatrixAxis0()
    {
        $numArray = new NumArray([[12, -43, 6], [-3, 89, 23]]);
        $expectedNumArray = new NumArray([4.5, 23, 14.5]);
        $this->assertNumArrayEquals($expectedNumArray, $numArray->mean(0));
    }