Merge commit 'v3.3.0' into upstream
[debian/gnuradio] / gnuradio-core / src / lib / general / gr_remez.cc
index ca6df541b7d1d935ad29f9d73aeaa00dd8b41095..86c2901b5f10c8a91ecb6c8e792cf6b6a3f80cdc 100644 (file)
@@ -814,8 +814,10 @@ gr_remez (int order,
   if (arg_bands[0] < 0 || arg_bands[arg_bands.size () - 1] > 1)
     punt ("gr_remez: band edges must be in the range [0,1]");
 
+  // Divide by 2 to fit with the implementation that uses a
+  // sample rate of [0, 0.5] instead of [0, 1.0]
   for (int i = 0; i < 2 * numbands; i++)
-    bands[i] = arg_bands[i] / 2;               // FIXME why / 2?
+    bands[i] = arg_bands[i] / 2;
 
   LOCAL_BUFFER (double, response, numbands * 2);
   if (arg_response.size () != arg_bands.size ())