public function testGetProjection($points, $P)
{
$regression = new Linear($points);
$test_P = $regression->getProjectionMatrix();
foreach ($P as $row_num => $row) {
foreach ($row as $column_num => $value) {
$this->assertEquals($value, $test_P[$row_num][$column_num], '', 1.0E-7);
}
}
}