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
private fun calRMS(left: Float) { if (sampleCount == perSamplePoints) { val rms = sqrt(sampleSum / perSamplePoints) * 2 // 0~1 sampleData.add(rms.toFloat()) sampleCount = 0 sampleSum = 0.0 } sampleCount++ sampleSum += left.toDouble().pow(2.0) }
第二行,rms=sqrt(sampleSum/perSamplePoints)*2,为什么要乘以2 ?
The text was updated successfully, but these errors were encountered:
额,具体原因很久忘记了,可能就是为了放大下数据?
Sorry, something went wrong.
No branches or pull requests
第二行,rms=sqrt(sampleSum/perSamplePoints)*2,为什么要乘以2 ?
The text was updated successfully, but these errors were encountered: