aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/iqbal.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/iqbal.c b/src/iqbal.c
index 1d0ea75..e5432f9 100644
--- a/src/iqbal.c
+++ b/src/iqbal.c
@@ -28,6 +28,16 @@
/*! \file iqbal.c
* \brief IQ balance utils implementation
+ *
+ * The actual algorithm used for estimation of the imbalance and its
+ * optimization is inspired by the IQ balancer of SDR# by Youssef Touil
+ * and described here :
+ *
+ * http://sdrsharp.com/index.php/automatic-iq-correction-algorithm
+ *
+ * The main differences are:
+ * - Objective function uses complex correlation of left/right side of FFT
+ * - Optimization based on steepest gradient with dynamic step size
*/
#include <complex.h>
@@ -207,17 +217,6 @@ osmo_iqbal_cxvec_estimate(const struct osmo_cxvec *sig,
/* IQ balance optimization */
/* ------------------------------------------------------------------------ */
-/*
- * The actual algorithm used here is inspired by the IQ balancer of SDR#
- * by Youssef Touil and described here :
- *
- * http://sdrsharp.com/index.php/automatic-iq-correction-algorithm
- *
- * The main differences are:
- * - Objective function uses complex correlation of left/right side of FFT
- * - Optimization based on steepest gradient with dynamic step size
- */
-
/*! \brief Default values for the optimization algorithm */
const struct osmo_iqbal_opts osmo_iqbal_default_opts = {
.fft_size = 1024,