Giter Site home page Giter Site logo

Filters - output about filters HOT 1 OPEN

jonhub avatar jonhub commented on September 13, 2024
Filters - output

from filters.

Comments (1)

JonHub avatar JonHub commented on September 13, 2024

The filters are designed to behave identically to their electronic counter parts (single-pole RC, and two pole Bessel/Butterworth filters). Essentially "Filters" simulates these circuits in real-time digital embedded. You can lean more about the filter behavior (in terms of frequency response) by checking into standard single- and two-pole filters.

Since the filters are single-pole and two-pole, they are not infinitely sharp in terms of frequency cutoff. So, you will still see some output at an input frequency 100 Hz, or even 1000 Hz (though dramatically attenuated).

From the user perspective, the frequency you supply is the “corner frequency,” which is the standard number used to define a filter. The signal is attenuated by 3 decibels at the corner frequency, which is half the power (or 1/sqrt(2) of the magnitude).

So, in your case, if you enter a corner frequency of 100, then your filter will output about 71% the maximum value at that frequency. Keep in mind that you need to updated the filter FREQUENTLY - many more times than your corner frequency, per second, probably closer to 1000x (or more)- for it to work

Since the filters are recursive (they “time-step” to calculate the next value, so the updates need to happen at a scale that is faster than big the signal, or filter). This is typically easy to achieve, but can eat up some resources for the DSP.

If you are stepping too infrequently, the single-pole filters will remain stable, and the two-pole filters have a “check,” so they remain numerically stable, but the output will not be correct.

Hope this helps.

from filters.

Related Issues (6)

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.