Fits straight regression lines through the origin f(x) = bx.
Function or value | Description |
Full Usage:
fit xData yData
Parameters:
seq<float>
-
vector of x values
yData : seq<float>
-
vector of y values
Returns: Coefficients
Slope of the regression line through the origin
|
Example
|
Full Usage:
fitOfVector xData yData
Parameters: Returns: Coefficients
Slope of the regression line through the origin
|
Example
|
Full Usage:
predict coef x
Parameters:
Coefficients
-
The functions slope
x : float
-
x value of which the corresponding y value should be predicted
Returns: float
predicted y value
|
Example
|
Full Usage:
predictFunc coef x
Parameters:
Coefficients
-
The functions slope
x : float
Returns: float
Function that takes a x value and returns the predicted y value
|
Example
|