Univariable handles two dimensional x,y data.
Function or value | Description |
|
Fits a model f(x) = b + m * x) to the data and returns the cooks distance for every data pair present in the input collections as an estimator for the influence of each data point in coefficient estimation.
Example
|
|
Calculates the intercept and slope for a straight line fitting the data. Linear regression minimizes the sum of squared residuals.
Example
|
|
Calculates the intercept and slope for a straight line fitting the data using Cholesky Decomposition. Linear regression minimizes the sum of squared residuals.
Example
|
Full Usage:
fitConstrained xData yData (arg3, arg4)
Parameters:
Vector<float>
-
vector of x values
yData : Vector<float>
-
vector of y values
arg2 : float
arg3 : float
Returns: Coefficients
vector of [intercept; slope]
|
Calculates the intercept and slope for a straight line fitting the data and passing through a specified point (xC,yC) . Linear regression minimizes the sum of squared residuals.
Example
|
Full Usage:
predict coef x
Parameters:
Coefficients
-
vector of [intercept;slope] (e.g. determined by Univariable.coefficient)
x : float
-
x value of which the corresponding y value should be predicted
Returns: float
predicted y value with given coefficients at X=x
|
Example
|