min() 공개 메소드

Returns the min of the NumArray for the given axis
부터: 1.0.0
public min ( integer $axis = null ) : NumArray
$axis integer given axis of min
리턴 NumArray
예제 #1
0
파일: MinTest.php 프로젝트: raslin/NumPHP
 /**
  * Tests NumArray::min with a matrix and argument 1
  */
 public function testMinMatrixAxis1()
 {
     $numArray = new NumArray([[34, 346, -12], [56, -78, 12], [345, -6, 99]]);
     $expectedNumArray = new NumArray([-12, -78, -6]);
     $this->assertNumArrayEquals($expectedNumArray, $numArray->min(1));
 }