Skip to content

Commit ee48187

Browse files
committed
BUGFIX: fix off-by-1 index in sinc_decimate()
1 parent 75506f9 commit ee48187

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

deltasigma/_sinc_decimate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ def sinc_decimate(x, m, r):
2727
for _ in range(m):
2828
x = np.cumsum(x)
2929
x = np.concatenate((x[:r], x[r:] - x[:-r]), axis=0)/r
30-
return x[r::r]
30+
return x[r-1::r]
3131

0 commit comments

Comments
 (0)