1 | static double rms_shortArray(short[] wav) { |
2 | double d = 0; |
3 | if (wav != null) for (short s : wav) |
4 | d += ((double) s)*s; |
5 | ret sqrt(d); |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020876 |
Snippet name: | rms_shortArray |
Eternal ID of this version: | #1020876/1 |
Text MD5: | b8ca7a1898a6080e6f85e60cf5fdb528 |
Author: | stefan |
Category: | javax / audio analysis |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-01-06 23:41:06 |
Source code size: | 145 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 309 / 359 |
Referenced in: | [show references] |