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));
}