Code Monkey home page Code Monkey logo

filtfilt's People

Contributors

hdw09 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

filtfilt's Issues

Bug in filter method

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);

Can't compile filtfilt-java on Ubuntu 20.04

I try to compile filtfilt-java on Ubunut 20.04. But it failed to compile with the following error message.
Could you let me know which environment do you use for compiling filtfilt-java?

javac ./Test.java
./Test.java:5: error: cannot find symbol
import com.iiphci.dsp.Filtfilt;
^
symbol: class Filtfilt
location: package com.iiphci.dsp
./Test.java:33: error: cannot find symbol
ArrayList y = Filtfilt.doFiltfilt(B,A,X);
^
symbol: variable Filtfilt
location: class Test
2 errors

这个程序有问题

c++版本我用了一下,设置了5阶36输入,然后输出和MATLAB根本就不同,我还以为是我哪里弄错了,用不同的阶数又试了几遍,还是错的,怎么能这么坑。你发出来不应该检测一下程序的正确性吗。

很棒的改写,对比Python版本发现了点儿新问题,可以在md更新一下

我用的是Python版本filtfilt是scipy.signal.filtfilt函数,然后我发现输出和你的对应不上,然后我就从网上搜索看到了Matlab和Python在滤波过程中的差异,会在函数计算中差0.3个相位差,所以在Python函数中 output = signal.filtfilt(b,a,x,padlen=3*(max(len(b),len(a))-1)
就可以得到一样的输出了。Matlab中不支持更改padlen(参考http://dong.sh/posts/differencefiltfiltfunction/)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.