public function testDF(array $points, $df) { $regression = new Linear($points); $this->assertEquals($df, $regression->degreesOfFreedom(), '', 1.0E-7); }