@@ -3,8 +3,6 @@ |
||
| 3 | 3 | |
| 4 | 4 | namespace Regression; |
| 5 | 5 | |
| 6 | -use Carbon\Carbon; |
|
| 7 | - |
|
| 8 | 6 | /** |
| 9 | 7 | * Class ExponentialRegression |
| 10 | 8 | * @package Regression |
@@ -3,10 +3,6 @@ |
||
| 3 | 3 | |
| 4 | 4 | namespace Regression; |
| 5 | 5 | |
| 6 | -use Carbon\Carbon; |
|
| 7 | -use Exception; |
|
| 8 | -use IllegalArgumentException; |
|
| 9 | - |
|
| 10 | 6 | /** |
| 11 | 7 | * Class LinearRegression |
| 12 | 8 | * @package Regression |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | * |
| 60 | 60 | * @param array $rightData |
| 61 | 61 | * @param array $hypothesisData |
| 62 | - * @return int |
|
| 62 | + * @return double |
|
| 63 | 63 | * @throws IllegalArgumentException |
| 64 | 64 | */ |
| 65 | 65 | public static function r2(array $rightData, array $hypothesisData) |