Skip to content

Commit 12106f7

Browse files
committed
BandPassWithRingingDetection: Remove the offset for every iteration
1 parent d591e77 commit 12106f7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Packages/MIES/MIES_MiesUtilities_Algorithm.ipf

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -631,13 +631,10 @@ Function [variable curOrder, WAVE filtered] BandPassWithRingingDetection(WAVE sr
631631
// Prepare destination wave
632632
duplicate/FREE src, filtered
633633

634-
// remove offset from src copy
635-
filtered -= offset
636-
637634
curOrder = maxOrder
638635
do
639636
// -------- copy fresh data into filtered ------------------------------
640-
filtered = src // avoids repeated duplicate/O allocations
637+
filtered = src - offset
641638

642639
// -------- attempt current order --------------------------------------
643640
FilterIIR/LO=(fLow / samp)/HI=(fHigh / samp)/DIM=(ROWS)/ORD=(curOrder) filtered

0 commit comments

Comments
 (0)