25#ifndef __OSMO_DSP_IQBAL_H__
26#define __OSMO_DSP_IQBAL_H__
43void osmo_iqbal_fix(
float complex *out,
float complex *in,
unsigned int len,
44 float mag,
float phase);
52 int fft_size,
int fft_count);
56 int fft_size,
int fft_count);
Osmocom Complex vectors header.
float osmo_iqbal_cxvec_estimate(const struct osmo_cxvec *sig, int fft_size, int fft_count)
Objectively estimate IQ balance in a given complex vector.
Definition: iqbal.c:206
float osmo_iqbal_estimate(const float complex *data, int fft_size, int fft_count)
Objectively estimate IQ balance in a given complex buffer.
Definition: iqbal.c:194
const struct osmo_iqbal_opts osmo_iqbal_default_opts
Default values for the optimization algorithm.
Definition: iqbal.c:221
struct osmo_cxvec * osmo_iqbal_cxvec_fix(const struct osmo_cxvec *in, float mag, float phase, struct osmo_cxvec *out)
Apply IQ balance correction to a given complex vector.
Definition: iqbal.c:94
void osmo_iqbal_fix(float complex *out, float complex *in, unsigned int len, float mag, float phase)
Apply IQ balance correction to a given complex buffer.
Definition: iqbal.c:71
int osmo_iqbal_cxvec_optimize(const struct osmo_cxvec *sig, float *mag, float *phase, const struct osmo_iqbal_opts *opts)
Finds the best IQ balance correction parameters for a given signal.
Definition: iqbal.c:301
Complex vector.
Definition: cxvec.h:41
float complex * data
Data field.
Definition: cxvec.h:45
Processing options for the IQ balance optimization algorithm.
Definition: iqbal.h:62
int fft_size
FFT size to use.
Definition: iqbal.h:63
int fft_count
Number of FFT to use.
Definition: iqbal.h:64
int max_iter
Max # iterations per pass.
Definition: iqbal.h:65
int start_at_prev
Use prev values as starting point.
Definition: iqbal.h:66