GithubHelp home page GithubHelp logo

Returns NaN when filtering. about iirj HOT 2 CLOSED

berndporr avatar berndporr commented on June 26, 2024
Returns NaN when filtering.

from iirj.

Comments (2)

berndporr avatar berndporr commented on June 26, 2024

You have a sampling rate of 29Hz, a centre frequency of 140Hz and a bandwidth of 200Hz?
Check out:
https://github.com/berndporr/iirj/blob/master/src/test/java/uk/me/berndporr/iirj/DetectorTest.java#L52
for an example config:
butterworth.bandPass(2,250,20,15);
...and of course the README and documentation which explain the parameters.

from iirj.

JoziGila avatar JoziGila commented on June 26, 2024

I actually don't really know much about DSP and just wanted to find an implementation of butterworth because it was mentioned in a paper that it's used to filter unwanted frequencies such as finger movement from the signal. So even though I have read the doc I don't understand the parameters. My intuition was wrong I guess, I though that sampling rate is the rate of sampling of the signal (29-30fps from the camera), and since the frequencies I want are between 40-230 Source, I interpreted the remaining parameters as 140 (mean of 240 and 40) and the width (+100, -100). Anyways thank you for the quick response, I'll read a bit more about signal processing.

from iirj.

Related Issues (20)

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.