Method |
Description |
|
__construct ( array $points ) |
Constructor - Prepares the data arrays for regression analysis |
|
evaluate ( number $x ) : number |
Evaluate the regression equation at x
Uses the instance model's evaluateModel method. |
|
getPoints ( ) : array |
Get points |
|
getSampleSize ( ) : integer |
Get sample size (number of points) |
|
getXs ( ) : array |
Get Xs (x values of each point) |
|
getYs ( ) : array |
Get Ys (y values of each point) |
|
yHat ( ) : array |
Ŷ (yhat)
A list of the predicted values of Y given the regression. |
|