MathPHP\Statistics\Regression\TheilSenTest::testGetXs PHP Méthode

testGetXs() public méthode

public testGetXs ( )
    public function testGetXs()
    {
        $points = [[1, 2], [2, 3], [4, 5], [5, 7], [6, 8]];
        $regression = new TheilSen($points);
        $this->assertEquals([1, 2, 4, 5, 6], $regression->getXs());
    }