1.0.0-rc.89
This commit is contained in:
@@ -12,7 +12,7 @@ TEST_CASE("Regression") {
|
||||
x[i] = i;
|
||||
y[i] = 7 * i + 5;
|
||||
}
|
||||
auto reg = regression(x, y);
|
||||
auto reg = regression(x, y, x.size());
|
||||
REQUIRE(reg.intercept == Catch::Approx(5.0));
|
||||
REQUIRE(reg.slope == Catch::Approx(7.0));
|
||||
REQUIRE(reg.r_square > 0.9999);
|
||||
|
||||
Reference in New Issue
Block a user