MathPHP\Statistics\Regression\TheilSenTest::testGetParameters PHP Method

testGetParameters() public method

public testGetParameters ( array $points, $m, $b )
$points array
    public function testGetParameters(array $points, $m, $b)
    {
        $regression = new TheilSen($points);
        $parameters = $regression->getParameters();
        $this->assertEquals($m, $parameters['m'], '', 0.0001);
        $this->assertEquals($b, $parameters['b'], '', 0.0001);
    }