diff options
author | Martin Braun <martin.braun@ettus.com> | 2020-08-13 15:08:08 +0200 |
---|---|---|
committer | Martin Braun <martin@gnuradio.org> | 2020-08-14 04:11:26 -0700 |
commit | 3adb522b0ddf6736605beea797016353a1d4a2b8 (patch) | |
tree | 6ba82c0bd96ac2a4461d13f61095f5d9afaeb13c /gr-fft/include/gnuradio/fft/window.h | |
parent | 84e007d9be2a8fe1b3dd050f53fde35f77860a62 (diff) |
fft: window: Provide default value for beta param on window::build
The API call fft::window::build() takes a third parameter, beta, that
only applies for the Kaiser window. For other windows, it is necessary
to provide a dummy value to call this function.
The declared-deprecated version firdes::window() on the other hand does
not require specifying beta when not needed. Instead, we provide
a default value of 6.76 which will still generate a valid (and generally
useful) Kaiser window, but means we don't have to specify beta for other
windows.
Diffstat (limited to 'gr-fft/include/gnuradio/fft/window.h')
-rw-r--r-- | gr-fft/include/gnuradio/fft/window.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-fft/include/gnuradio/fft/window.h b/gr-fft/include/gnuradio/fft/window.h index efb34fccf4..0ab333e175 100644 --- a/gr-fft/include/gnuradio/fft/window.h +++ b/gr-fft/include/gnuradio/fft/window.h @@ -332,7 +332,7 @@ public: * \param ntaps Number of coefficients in the window. * \param beta Used only for building Kaiser windows. */ - static std::vector<float> build(win_type type, int ntaps, double beta); + static std::vector<float> build(win_type type, int ntaps, double beta = 6.76); }; } /* namespace fft */ |