Skip to content

Commit 480bed1

Browse files
authored
Update README.md
1 parent 2eaa128 commit 480bed1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ npm install --save regression
3333
import regression from 'regression';
3434
const result = regression.linear([[0, 1], [32, 67], [12, 79]]);
3535
const gradient = result.equation[0];
36-
const yIntercept result.equation[1];
36+
const yIntercept = result.equation[1];
3737
```
3838

3939
Data is passed into the model as an array. A second parameter can be used to configure the model. The configuration parameter is optional. `null` values are ignored. The precision option will set the number of significant figures the output is rounded to.

0 commit comments

Comments
 (0)