📅  最后修改于: 2022-03-11 14:55:36.147000             🧑  作者: Mango
//Equation to solve for intercept
var intercept = y_mean - x_mean*slope;
//Store it's value in the regressor object
regressor['intercept'] = intercept;