public function testOutliers($points, $cook, $DFFITS)
{
$regression = new Linear($points);
$test_cook = $regression->cooksD();
$test_dffits = $regression->DFFITS();
foreach ($test_cook as $key => $value) {
$this->assertEquals($value, $cook[$key], '', 1.0E-7);
}
foreach ($test_dffits as $key => $value) {
$this->assertEquals($value, $DFFITS[$key], '', 1.0E-7);
}
}