Skip to content

Documentation v1.0.0


Documentation / @openassistant/plots / linearRegression

Function: linearRegression() ​

linearRegression(x, y): RegressionResults

Defined in: echarts/math/linear-regression.ts:83

Perform linear regression on the data.

Parameters ​

x ​

number[]

The x data.

y ​

number[]

The y data.

Returns ​

RegressionResults

The results of the linear regression.

Released under the MIT License.