PHP Class PhpBench\Tests\Unit\Math\StatisticsTest

Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: dantleech/phpbench

Public Methods

Method Description
provideHistogram ( )
provideKdeMode ( )
provideLinearSpace ( )
testHistogram ( array $data, $steps, $lower, $upper, array $expected ) It should return histogram data.
testKdeMode ( $population, $space, $bandwidth, $expected )
testLinearSpace ( $min, $max, $steps, $endpoint, $expected ) It should generate a linear space.
testLinspaceMinMaxSame ( ) It should throw an exception if the linspace min and max are the same number.
testMean ( ) It should return the average.
testStdev ( ) It should return the standard deviation.

Method Details

provideHistogram() public method

public provideHistogram ( )

provideKdeMode() public method

public provideKdeMode ( )

provideLinearSpace() public method

public provideLinearSpace ( )

testHistogram() public method

It should return histogram data.
public testHistogram ( array $data, $steps, $lower, $upper, array $expected )
$data array
$expected array

testKdeMode() public method

public testKdeMode ( $population, $space, $bandwidth, $expected )

testLinearSpace() public method

It should generate a linear space.
public testLinearSpace ( $min, $max, $steps, $endpoint, $expected )

testLinspaceMinMaxSame() public method

It should throw an exception if the linspace min and max are the same number.

testMean() public method

It should return the average.
public testMean ( )

testStdev() public method

It should return the standard deviation.
public testStdev ( )