kfr

Fast, modern C++ DSP framework, FFT, Sample Rate Conversion, FIR/IIR/Biquad Filters (SSE, AVX, AVX-512, ARM NEON)
Log | Files | Refs | README

commit d85d296440a0f67ae4337b4e05e27e2dcf172486
parent de0f469edb48f043ba1c64ba2ae99e7442a329bc
Author: [email protected] <[email protected]>
Date:   Thu, 14 Mar 2019 23:01:57 +0000

FIR example: use initialized random generator

Diffstat:
Mexamples/fir.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/fir.cpp b/examples/fir.cpp @@ -102,7 +102,7 @@ int main() // -------------------------------------------------------------------------------------- // Prepare 10000 samples of white noise - univector<float> noise = truncate(gen_random_range(-1.f, +1.f), 10000); + univector<float> noise = truncate(gen_random_range(random_bit_generator{1, 2, 3, 4}, -1.f, +1.f), 10000); // Apply band stop filter univector<float> filtered_noise = fir(noise, taps127);