/** * @dataProvider dataProviderForR2 */ public function testR2(array $X, array $Y, $r2) { $this->assertEquals($r2, Correlation::r2($X, $Y), '', 0.001); }