PHP Class NumPHPTest\Core\NumArray\Reduce\MeanTest

Since: 1.0.0
Author: Gordon Lesti ([email protected])
Inheritance: extends NumPHPTest\Core\Framework\TestCase
Datei anzeigen Open project: numphp/numphp

Public Methods

Method Description
testMeanMatrix ( ) Tests NumArray::mean with a matrix and without arguments
testMeanMatrix2x3x4Axis0 ( ) Tests NumArray::sum with a 2x3x4 matrix and argument 0
testMeanMatrixAxis0 ( ) Tests NumArray::mean with a matrix and with argument 0
testMeanMatrixAxis1 ( ) Tests NumArray::mean with a matrix and argument 1
testMeanMatrixAxis2 ( ) Tests if InvalidArgumentException will be thrown by using NumArray::mean and a wrong axis on a matrix
testMeanSingle ( ) Tests NumArray::mean with scalar value without arguments
testMeanSingleAxis0 ( ) Tests NumArray::mean with scalar value with argument 0
testMeanSingleAxis1 ( ) Tests if InvalidArgumentException will be thrown by using NumArray::mean and a wrong axis on a scalar value
testMeanVector ( ) Tests NumArray::mean with a vector and without arguments
testMeanVectorAxis0 ( ) Tests NumArray::mean with a vector and with argument 0
testMeanVectorAxis1 ( ) Tests if InvalidArgumentException will be thrown by using NumArray::mean and a wrong axis on a vector

Method Details

testMeanMatrix() public method

Tests NumArray::mean with a matrix and without arguments
public testMeanMatrix ( )

testMeanMatrix2x3x4Axis0() public method

Tests NumArray::sum with a 2x3x4 matrix and argument 0

testMeanMatrixAxis0() public method

Tests NumArray::mean with a matrix and with argument 0
public testMeanMatrixAxis0 ( )

testMeanMatrixAxis1() public method

Tests NumArray::mean with a matrix and argument 1
public testMeanMatrixAxis1 ( )

testMeanMatrixAxis2() public method

Tests if InvalidArgumentException will be thrown by using NumArray::mean and a wrong axis on a matrix
public testMeanMatrixAxis2 ( )

testMeanSingle() public method

Tests NumArray::mean with scalar value without arguments
public testMeanSingle ( )

testMeanSingleAxis0() public method

Tests NumArray::mean with scalar value with argument 0
public testMeanSingleAxis0 ( )

testMeanSingleAxis1() public method

Tests if InvalidArgumentException will be thrown by using NumArray::mean and a wrong axis on a scalar value
public testMeanSingleAxis1 ( )

testMeanVector() public method

Tests NumArray::mean with a vector and without arguments
public testMeanVector ( )

testMeanVectorAxis0() public method

Tests NumArray::mean with a vector and with argument 0
public testMeanVectorAxis0 ( )

testMeanVectorAxis1() public method

Tests if InvalidArgumentException will be thrown by using NumArray::mean and a wrong axis on a vector
public testMeanVectorAxis1 ( )