linspace() 공개 정적인 메소드

Creates a vector (NumArray) from $low to $high with the size of $number
부터: 1.0.0
public static linspace ( float $low, float $high, integer $number ) : NumArray
$low float beginning of the vector
$high float end of the vector
$number integer size of the vector
리턴 NumArray
예제 #1
0
 /**
  * Test if InvalidArgumentException will be thrown, when using NumPHP::linspace
  * with negative `$number`
  *
  * @expectedException        \NumPHP\Core\Exception\InvalidArgumentException
  * @expectedExceptionMessage Number has to be a positive value
  */
 public function testLinspaceInvalidArgumentException()
 {
     NumPHP::linspace(1.5, 4.5, -1);
 }