public function testEvaluate(array $points, $x, $y) { $force = [0, 0]; $regression = new LinearThroughPoint($points, $force); $this->assertEquals($y, $regression->evaluate($x), '', 0.0001); }