Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1006790 // cyclicBlur

JavaX fragment (include)

static float[] cyclicBlur(float[] l) {
  int n = l(l);
  float[] x = new float[n];
  for i to n:
    x[i] = (l[i]*2+l[mod(i-1, n)]+l[mod(i+1, n)])/4;
  ret x;
}

Author comment

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: 451 / 501
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)