public function testR2(array $points, $r2) { $regression = new Linear($points); $this->assertEquals($r2, $regression->r2($points), '', 0.001); }