프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$n | integer | Number of points | |
$points | array | .. ] | |
$xs | array | X values of the original points | |
$ys | [type] | Y values of the original points |
메소드 | 설명 | |
---|---|---|
__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. |
public __construct ( array $points ) | ||
$points | array | [ [x, y], [x, y], ... ] |
public getSampleSize ( ) : integer | ||
리턴 | integer |