jdupuy / dj_fft Goto Github PK
View Code? Open in Web Editor NEWHeader only FFT library
License: Other
Header only FFT library
License: Other
Nothing big; just noticed that the enum class, specifying the direction in which to calculate the FFT, is outdated in the usage example in the README file. It should be dj::fft_dir::DIR_FWD and not dj::fft_dir::FFT_FWD.
Thanks for the repo - really useful ๐
Hello,
I'm struggling here with the algorithm.
I'm comparing the result of R's fft and another fft's I found on the internet and the result is not the same as dj-fft.
For example:
complex_vector = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}
fft(complex_vector) returns:
[1] 11.0625353+0.0000073i -1.2694808-1.8365898i -0.8289607-1.0336070i -0.6982133-0.6797898i -0.6415854-0.4676793i -0.6127618-0.3175757i -0.5972594-0.1986772i
[8] -0.5894584-0.0958635i -0.5870695-0.0000038i -0.5894589+0.0958638i -0.5972596+0.1986813i -0.6127663+0.3175770i -0.6415888+0.4676792i -0.6982226+0.6797901i
[15] -0.8289628+1.0336033i -1.2694881+1.8365879i
but the correct should be:
[1] 136+ 0.000000i -8+40.218716i -8+19.313708i -8+11.972846i -8+ 8.000000i -8+ 5.345429i -8+ 3.313708i -8+ 1.591299i -8+ 0.000000i -8- 1.591299i -8- 3.313708i
[12] -8- 5.345429i -8- 8.000000i -8-11.972846i -8-19.313708i -8-40.218716i
I'm trying to find where is the problem meanwhile.
Thank you.
Public domain is a difficult concept to work around when it comes to OSS licensing and incorporating code into projects. Furthermore, dj_fft does not declare this formally using a document like CC0, meaning a few things:
Additionally, the incorporeality of public domain software in OSS projects encounters a problem with sub-licensing, where this is a gray area (the CC0 license is more explicit in this case and probably won't cause an issue, but your declaration of public domain makes this a problem).
For more information, see this SE post, and GNU licensing notes on informal licenses.
Assuming you wished to grant full rights to your users, I suggest:
However, if want to keep your software available to the public including modifications to it, use the GPLv3.
Obligatory: I am not a lawyer and this is not formal legal advice
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.