Skip to content

Commit a9324fc

Browse files
authored
Merge pull request scipy#11 from clecocel/patch-1
Correct mirroring computation
2 parents 83badc9 + bc2edc9 commit a9324fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ipython/SignalSmooth.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
" raise ValueError, \"Window is on of 'flat', 'hanning', 'hamming', 'bartlett', 'blackman'\"\n",
7777
" \n",
7878
"\n",
79-
" s=numpy.r_[x[window_len-1:0:-1],x,x[-1:-window_len:-1]]\n",
79+
" s=numpy.r_[x[window_len-1:0:-1],x,x[-2:-window_len-1:-1]]\n",
8080
" #print(len(s))\n",
8181
" if window == 'flat': #moving average\n",
8282
" w=numpy.ones(window_len,'d')\n",
@@ -237,4 +237,4 @@
237237
"metadata": {}
238238
}
239239
]
240-
}
240+
}

0 commit comments

Comments
 (0)