GithubHelp home page GithubHelp logo

goertzel's People

Contributors

mcpherrinm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

goertzel's Issues

thread 'main' panicked at 'assertion failed: `(left == right)`

When I compile the example from https://github.com/mcpherrinm/spectrogram/blob/master/src/lib.rs I get this error:

thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `68`,
 right: `256`', /home/vagrant/.cargo/registry/src/github.com-1ecc6299db9ec823/goertzel-0.2.0/src/lib.rs:53:9
stack backtrace:
   0: rust_begin_unwind
             at /rustc/b3e19a221e63dcffdef87e12eadf1f36a8b90295/library/std/src/panicking.rs:493:5
   1: core::panicking::panic_fmt
             at /rustc/b3e19a221e63dcffdef87e12eadf1f36a8b90295/library/core/src/panicking.rs:92:14
   2: core::panicking::assert_failed_inner
   3: core::panicking::assert_failed
             at /home/vagrant/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panicking.rs:117:5
   4: goertzel::Partial::finish
             at /home/vagrant/.cargo/registry/src/github.com-1ecc6299db9ec823/goertzel-0.2.0/src/lib.rs:53:9
   5: goertzel::Partial::finish_mag
             at /home/vagrant/.cargo/registry/src/github.com-1ecc6299db9ec823/goertzel-0.2.0/src/lib.rs:60:28
   6: test_spectrogram::draw
             at ./src/main.rs:54:21
   7: test_spectrogram::main
             at ./src/main.rs:34:5
   8: core::ops::function::FnOnce::call_once
             at /home/vagrant/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:227:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

It can be hotfixed in my code by using fixed size buckets, but a better fix would be to make the library allow using smaller buckets.

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.