Documentation / @ripl/charts / LinearRegression
Interface: LinearRegression ​
Defined in: charts/src/core/statistics.ts:55
A fitted simple linear regression.
Properties ​
Methods ​
predict() ​
predict(
x):number
Defined in: charts/src/core/statistics.ts:63
Predicts y for a given x from the fitted line.
Parameters ​
| Parameter | Type |
|---|---|
x | number |
Returns ​
number