goertzel-filter 0.2.0

Implementation of Goertzel filter-based single-frequency DFT. Accurate to 0.1%.
Documentation
  • Coverage
  • 75%
    3 out of 4 items documented0 out of 3 items with examples
  • Size
  • Source code size: 39.19 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.43 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 18s Average build duration of successful builds.
  • all releases: 18s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • bright-star

goertzel

cargo badge

Rust implementation of the Goertzel filter.

The Goertzel filter is faster than the FFT for a small range of frequencies of interest.

interface

  • pub fn filter_naive(input: &Vec<f64>, linear_freq: f64) -> Vec<Complex<f64>>

    Just applies the filter equations and gives you the complete output.

  • pub fn dft(input: &Vec<f64>, linear_freq: f64) -> Complex<f64>

    Computes the associated (closest) DFT term to a given linear frequency.

  • pub fn dft_power(input: &Vec<f64>, linear_freq: f64) -> f64

    Computes the power of the signal at a given DFT bin.

TODO