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

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

Tests NumArray::mean with a matrix and argument 1
public testMeanMatrixAxis1 ( )
    public function testMeanMatrixAxis1()
    {
        $numArray = new NumArray([[12, -43, 6], [-3, 89, 23]]);
        $expectedNumArray = new NumArray([-25 / 3, 109 / 3]);
        $this->assertNumArrayEquals($expectedNumArray, $numArray->mean(1));
    }