hdw09 / filtfilt

We wirte a filtflit function in java . The filtflit's output is the same as it's in Matlab .
43 stars 19 forks source link

Bug in filter method #4

Closed masa2146 closed 3 years ago

masa2146 commented 3 years ago

Hello, first of all thank you for this java code. However, ı found a bug filter method in Filtfilt class. the part of the bug code is

changeArray(A, A.get(0));
changeArray(B, A.get(0));

when A.get(0) was 1 value then B values does not change. So ı change it. New code is

double a0 = A.get(0);
changeArray(A, a0);
changeArray(B, a0);
hdw09 commented 3 years ago

多谢反馈,已经修改了