Univariable handles multi dimensional data where a vector of independent x values should be used to predict a single y value.
coefficients xData yData
Matrix<float>
Vector<float>
Calculates the coefficients for linear regression in the form of [|intercept; slope;|]
coefficientsCholesky xData yData
Calculates the coefficients for linear regression in the form of [|intercept; slope;|] using Cholesky Decomposition
fit coef x
float
Fit to x