1 | static float[] cyclicBlur(float[] l) { |
2 | int n = l(l); |
3 | float[] x = new float[n]; |
4 | for i to n: |
5 | x[i] = (l[i]*2+l[mod(i-1, n)]+l[mod(i+1, n)])/4; |
6 | ret x; |
7 | } |
Began life as a copy of #1006789
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006790 |
Snippet name: | cyclicBlur |
Eternal ID of this version: | #1006790/3 |
Text MD5: | 2ba27a9420168c8748ed56a16cdeb30f |
Author: | stefan |
Category: | javax / maths |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-02-04 04:56:36 |
Source code size: | 166 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 452 / 502 |
Version history: | 2 change(s) |
Referenced in: | [show references] |