RTO Module
Fits straight regression lines through the origin f(x) = bx.
Functions and values
| Function or value | Description |
Full Usage:
fit xData yData
Parameters:
Vector<float>
-
vector of x values
yData : Vector<float>
-
vector of y values
Returns: Coefficients
Slope of the regression line through the origin
|
Example
val xData: obj
val yData: obj
val coefficients: obj
|
Full Usage:
fitOfVector xData yData
Parameters:
Vector<float>
-
vector of x values
yData : Vector<float>
-
vector of y values
Returns: Coefficients
Slope of the regression line through the origin
|
Example
val xData: obj
val yData: obj
val coefficients: obj
|
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
val mySlope: float
|
Full Usage:
predictFunc coef x
Parameters:
Coefficients
-
The functions slope
x : float
-
x value of which the corresponding y value should be predicted
Returns: float
Function that takes a x value and returns the predicted y value
|
Example
val mySlope: float
val myF: (float -> obj)
|
FSharp.Stats