We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
有没有返回R平方的值?
The text was updated successfully, but these errors were encountered:
不平方,R值也可以,望开放
Sorry, something went wrong.
var n=data.length,sumxy=0,sumx=0,sumy=0,hypotx=0,hypoty=0; for(let i=0;i<n;i++){ sumx+=data[i][0]; sumy+=data[i][1]; sumxy+=data[i][0]*data[i][1]; hypotx+=Math.pow(data[i][0],2); hypoty+=Math.pow(data[i][1],2); } var r=(n*sumxy-sumx*sumy)/(Math.sqrt(n*hypotx-Math.pow(sumx,2))*Math.sqrt(n*hypoty-Math.pow(sumy,2))); 自己弄了个
No branches or pull requests
有没有返回R平方的值?
The text was updated successfully, but these errors were encountered: