@@ -12,7 +12,7 @@ function naivefilt(h::Vector, x::Vector, resamplerate::Rational=1//1)
12
12
xZeroStuffed[n* upfactor+ 1 ] = x[n+ 1 ]
13
13
end
14
14
15
- y = Base . filt (h, one (eltype (x)), xZeroStuffed)
15
+ y = filt (h, one (eltype (x)), xZeroStuffed)
16
16
y = [y[n] for n = 1 : downfactor: length (y)]
17
17
end
18
18
@@ -82,7 +82,7 @@ function test_singlerate(h, x)
82
82
@printfifinteractive ( " \n Testing single-rate fitering, h is %s, x is %s. xLen = %d, hLen = %d" , string (eltype (h)), string (eltype (x)), xLen, hLen )
83
83
84
84
@printfifinteractive ( " \n\t Base.filt\n\t\t " )
85
- @timeifinteractive naiveResult = Base . filt (h, 1.0 , x)
85
+ @timeifinteractive naiveResult = filt (h, 1.0 , x)
86
86
87
87
@printfifinteractive ( " \n\t DSP.filt( h, x, 1//1 )\n\t\t " )
88
88
@timeifinteractive statelesResult = DSP. filt ( h, x )
@@ -186,7 +186,7 @@ function test_interpolation(h, x, interpolation)
186
186
for n = 0 : xLen- 1 ;
187
187
xZeroStuffed[n* interpolation+ 1 ] = x[n+ 1 ]
188
188
end
189
- naiveResult = Base . filt (h, one (eltype (h)), xZeroStuffed)
189
+ naiveResult = filt (h, one (eltype (h)), xZeroStuffed)
190
190
end
191
191
192
192
@printfifinteractive ( " \n\t DSP.filt( h, x, %d//1 )\n\t\t " , interpolation )
0 commit comments