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
为什么验证函数这个验证函数一直都是返回true var sum = 0.0; for(var i =0; i < arr.length; i++){ sum += arr[i]; } var avg = sum * 1.0 / arr.length; var sum2 = 0.0; for(var j=0; j< arr.length; j++){ sum2+=Math.pow(arr[j] - avg, 2); } var stddev = sum2 / arr.length; return stddev != 0;
The text was updated successfully, but these errors were encountered:
中文README提到了,这段代码只判断了Y轴是否偏移,所以如果你是人为拖动的,理论上都是true
Sorry, something went wrong.
No branches or pull requests
为什么验证函数这个验证函数一直都是返回true
var sum = 0.0;
for(var i =0; i < arr.length; i++){
sum += arr[i];
}
var avg = sum * 1.0 / arr.length;
var sum2 = 0.0;
for(var j=0; j< arr.length; j++){
sum2+=Math.pow(arr[j] - avg, 2);
}
var stddev = sum2 / arr.length;
return stddev != 0;
The text was updated successfully, but these errors were encountered: