Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windowing #99

Open
Neginysh opened this issue Nov 1, 2019 · 1 comment
Open

Windowing #99

Neginysh opened this issue Nov 1, 2019 · 1 comment

Comments

@Neginysh
Copy link

Neginysh commented Nov 1, 2019

It is mentioned in comments that the FFT algorithm use Hamming window, but I couldn't find the code for that. Does the algorithm use it? and if so, is it overlapping or side-by-side window?

@ddf
Copy link
Owner

ddf commented Nov 1, 2019

All of the FFT related code is here: https://github.com/ddf/Minim/tree/master/src/main/java/ddf/minim/analysis

This includes classes for all of the window types that are included. If you wanted to use one that isn't included, you could implement it yourself by extending WndowFunction and passing an instance to the window method.

It looks like whatever comments you read are out of date and that by default the window function is set to a Rectangular window (ie no windowing) when making a new FFT.

When using an FFT, the window function is applied to every block of samples passed to the forward method. So whether or not your windows are overlapping or side-by-side depends entirely on how you write the code that uses an FFT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants