<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Alg on Shaka</title><link>https://shakaxi.github.io/tags/alg/</link><description>Recent content in Alg on Shaka</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 27 Sep 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://shakaxi.github.io/tags/alg/index.xml" rel="self" type="application/rss+xml"/><item><title>K - Means Clustering</title><link>https://shakaxi.github.io/posts/k_means/</link><pubDate>Wed, 25 Nov 2026 08:04:32 +0000</pubDate><guid>https://shakaxi.github.io/posts/k_means/</guid><description>&lt;p&gt;&#10;K - Means is a classical clustering algorithm, targeting intra-cluster close resemblance and inter-cluster difference.&lt;/p&gt;&#10;&lt;p&gt;&#10;Without loss of generality, the procedure of assigning $n$ samples to $k$ clusters can be listed as follows.&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Initialize the cluster centers: Randomly select $k$ different samples as cluster centers.&lt;/li&gt;&#10;&lt;li&gt;Assign samples: For each sample, compute its distance to each cluster center, and assign the sample to its closest cluster.&lt;/li&gt;&#10;&lt;li&gt;Update cluster centers: For each cluster, update the mean value of intra-cluster samples as the new cluster center.&lt;/li&gt;&#10;&lt;li&gt;Repeat steps 2 and 3 until cluster centers do not change anymore or a maximum/expected number of iterations are reached.&lt;/li&gt;&#10;&lt;/ol&gt;</description></item><item><title>MMSE-based Channel Estimation</title><link>https://shakaxi.github.io/posts/mmse_ce/</link><pubDate>Wed, 25 Nov 2026 08:04:32 +0000</pubDate><guid>https://shakaxi.github.io/posts/mmse_ce/</guid><description>&lt;p&gt;&#10;Regarding channel estimation, &lt;em&gt;minimum mean square error (MMSE)&lt;/em&gt; is a popular algorithm widely utilized in a variety of applications. This short document is just written to reveal the rationale between the algorithm.&lt;/p&gt;&#10;&lt;p&gt;&#10;Without loss of generality, we take an OFDM system for instance. The received signals on pilot, a.k.a. &lt;em&gt;reference signal (RS)&lt;/em&gt; &lt;em&gt;resource elements (RE)&lt;/em&gt; can be written as $\mathbf{y}_p = \mathbf{X}_p \mathbf{h}_{p} + \mathbf{n}_p$, where&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;$\mathbf{X}_p \in \mathbb{C}^{P \times P}$ is a diagonal matrix with pilot symbols as its diagonal elements, $P \in \mathbb{Z}^+$ the number of pilot in the pattern.&lt;/li&gt;&#10;&lt;li&gt;$\mathbf{h}_p \in \mathbb{C}^P$ is the &lt;em&gt;channel frequency response (CFR)&lt;/em&gt; on the pilot REs.&lt;/li&gt;&#10;&lt;li&gt;$\mathbf{n}_p \in \mathbb{C}^P \sim \mathcal{CN}(\mathbf{0}, \sigma^2\mathbf{I}_P)$ is the additive Gaussian white noise.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;The CFR of the target RE can be denoted by $\tilde{\mathbf{h}} = \mathbf{G} \mathbf{y}_p$,&#10;where $\mathbf{h}$ is the target CFR and $\mathbf{G}$ is the MMSE channel estimator.&lt;/p&gt;</description></item><item><title>Orthogonal Matching Pursuit (OMP)</title><link>https://shakaxi.github.io/posts/omp/</link><pubDate>Wed, 25 Nov 2026 08:04:32 +0000</pubDate><guid>https://shakaxi.github.io/posts/omp/</guid><description>&lt;p&gt;&#10;&lt;em&gt;Matching pursuit (MP)&lt;/em&gt; and its improvement &lt;em&gt;orthogonal matching pursuit (OMP)&lt;/em&gt; are both popular algorithms in &lt;em&gt;compressive sensing (CS)&lt;/em&gt;. Compared to MP, OMP can offer better performance, e.g. in respects of higher precision and faster convergency. This post aims to summarize the detailed procedure of OMP.&lt;/p&gt;&#10;&lt;p&gt;&#10;Given a NP-hard problem&lt;/p&gt;&#10;\begin{align*}&#10; \mathcal{L}:\quad &amp;amp;\arg\min_{\mathbf{x}}\|\mathbf{x}\|_0 \\&#10; \mathrm{subject~to}\quad &amp;amp; \mathbf{Ax} = \mathbf{b}&#10;\end{align*}&#10;&lt;p&gt;where&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;$\mathbf{A} \in \mathbb{C}^{m \times n}$ is a &lt;em&gt;short-fat&lt;/em&gt; matrix, i.e., $n \gg m$.&lt;/li&gt;&#10;&lt;li&gt;$\mathbf{b}\in\mathbb{C}^m$.&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;$\mathbf{x}\in\mathbb{C}^n$.&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;$\|\mathbf{x}\|_0$ is $\ell_0$ norm of $\mathbf{x}$, i.e., the number of non-zero elements of $\mathbf{x}$, a.k.a. the &lt;em&gt;sparsity&lt;/em&gt; of $\mathbf{x}$;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;The set comprising the indices of all non-zero elements in $\mathbf{x}$ is termed the &lt;em&gt;support&lt;/em&gt; of $\mathbf{x}$, denoted by&lt;/p&gt;&#10;\begin{align*}&#10; \mathrm{supp}(\mathbf{x}) \triangleq \{i \mid [\mathbf{x}]_i \neq 0\}.&#10;\end{align*}&#10;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;</description></item><item><title>Least Square and Its Iterative Approach (RLS)</title><link>https://shakaxi.github.io/posts/rls/</link><pubDate>Wed, 25 Nov 2026 08:04:32 +0000</pubDate><guid>https://shakaxi.github.io/posts/rls/</guid><description>&lt;div id="outline-container-headline-1" class="outline-2"&gt;&#10;&lt;h2 id="headline-1"&gt;&#10;Introduction&#10;&lt;/h2&gt;&#10;&lt;div id="outline-text-headline-1" class="outline-text-2"&gt;&#10;&lt;p&gt;As is well-known, &lt;em&gt;least square (LS)&lt;/em&gt; is the optimal linear unbiased estimator, which plays an extremely important role in the classic estimation theory. This document motivates to illustrate the fundamental of LS algorithm. However, LS algorithm suffers rather high complexity, especially for the operation of matrix inversion, which greatly limits its application in practice. In order to reduce the computational complexity, an iterative approach, a.k.a. &lt;em&gt;recursive LS (RLS)&lt;/em&gt;, has been proposed.&lt;/p&gt;&#10;&lt;p&gt;&#10;The remainder part of the document is structured as follows. In Section 1, the principle of LS algorithm is derived in detail. Then its iterative solution, i.e., RLS algorithm, follows in Section 2.&lt;/p&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;</description></item><item><title>Kalman Filter</title><link>https://shakaxi.github.io/posts/kf/</link><pubDate>Wed, 25 Nov 2026 08:04:32 +0000</pubDate><guid>https://shakaxi.github.io/posts/kf/</guid><description>&lt;p&gt;&#10;Without loss of generality, the &lt;em&gt;probability density function (pdf)&lt;/em&gt; of Gaussian distribution can be denoted by function&lt;/p&gt;&#10;\begin{align*}&#10;N(x, \mu, \sigma) = \frac{1}{\sqrt{2\pi}\sigma} e^{-\frac{(x-\mu)^2}{2\sigma^2}},&#10;\end{align*}&#10;&lt;p&gt;where $\mu$ and $\sigma$ are the mean and standard deviation repectively. Then, we have&lt;/p&gt;&#10;\begin{align*}&#10;N(x, \mu_1, \sigma_1) N(x, \mu_2, \sigma_2) = \frac{e^{-\cfrac{(\mu_1-\mu_2)^2}{2(\sigma_1^2+\sigma_2^2)}}}{\sqrt{2\pi(\sigma_1^2+\sigma_2^2)}} N\left(x, \frac{\mu_1\sigma_2^2 + \mu_2\sigma_1^2}{\sigma_1^2 + \sigma_2^2}, \frac{\sigma_1^2\sigma_2^2}{\sigma_1^2+\sigma_2^2}\right)&#10;\end{align*}</description></item><item><title>SLNR-based Beamforming</title><link>https://shakaxi.github.io/posts/slnr/</link><pubDate>Wed, 25 Nov 2026 08:04:32 +0000</pubDate><guid>https://shakaxi.github.io/posts/slnr/</guid><description>&lt;div id="outline-container-headline-1" class="outline-2"&gt;&#10;&lt;h2 id="headline-1"&gt;&#10;Introduction&#10;&lt;/h2&gt;&#10;&lt;div id="outline-text-headline-1" class="outline-text-2"&gt;&#10;&lt;p&gt;In coordinatd scheduling and beamforming (CS/CB), one of coordinatd multipoint (CoMP) transmission schemes, signal leakage noise power ratio (SLNR)-based beamforming is widely used.&lt;/p&gt;&#10;&lt;p&gt;&#10;Just as its name indicates, SLNR aims to maximize the ratio of desired signal power to the undesired leakage power and noise power.&lt;/p&gt;&#10;&lt;p&gt;&#10;This page is just written to summarize this SLNR-based beamforming scheme.&lt;/p&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;div id="outline-container-headline-2" class="outline-2"&gt;&#10;&lt;h2 id="headline-2"&gt;&#10;System model&#10;&lt;/h2&gt;&#10;&lt;div id="outline-text-headline-2" class="outline-text-2"&gt;&#10;&lt;figure&gt;&#10;&lt;img src="./slnr.png" alt="./slnr.png" title="./slnr.png" width="600px" align="center"/&gt;&#10;&lt;figcaption&gt;&#10;System model&#10;&lt;/figcaption&gt;&#10;&lt;/figure&gt;&#10;&lt;p&gt;&#10;Without loss of generality, we consider a simple scenario as shown in the figure above. Taking &lt;code class="verbatim"&gt;UE0&lt;/code&gt; for instance, the BS intends to send data to it, i.e. the received signals at other UE&amp;#39;s, e.g. &lt;code class="verbatim"&gt;UE1&lt;/code&gt;, …, &lt;code class="verbatim"&gt;UEn&lt;/code&gt; are all &lt;em&gt;leakage&lt;/em&gt;. The SLNR can be expressed as&lt;/p&gt;&#10;\begin{align*}&#10; \text{SLNR}_0 := \frac{\|\mathbf{H}_0 \mathbf{w}_0\|^2}{P_N + \sum_{i\neq 0}\|\mathbf{H}_i \mathbf{w}_0\|^2},&#10;\end{align*}&#10;&lt;p&gt;where&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;$P_N$ is the noise power at &lt;code class="verbatim"&gt;UE0&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;$\mathbf{w}_0$ is the beamforming vector intended for &lt;code class="verbatim"&gt;UE0&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;$\mathbf{H}_i$ is the channel matrix from the BS to &lt;code class="verbatim"&gt;UEi&lt;/code&gt;, $i=0,1,\ldots,n$.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;</description></item><item><title>Whitening Filter</title><link>https://shakaxi.github.io/posts/whitening_filter/</link><pubDate>Wed, 25 Nov 2026 08:04:32 +0000</pubDate><guid>https://shakaxi.github.io/posts/whitening_filter/</guid><description>&lt;p&gt;&#10;Usually, we need to filter a mixture of desired signal and colored noise, in order to make the spectrum of the noise become white.&lt;/p&gt;&#10;&lt;p&gt;&#10;Without loss of generality, $x(t)$ is a wide-sense stationary stochastic process. If it is taken as input by a &lt;em&gt;linear time invariant (LTI)&lt;/em&gt; system $W$ and the output process $n(t)$ has white power spectrum, i.e., &lt;em&gt;power spectrum density (PSD)&lt;/em&gt; equal to 1; then the system $W$ is termed the &lt;em&gt;whitening filter&lt;/em&gt; of process $x(t)$, and $n(t)$ is termed the &lt;em&gt;innovation process&lt;/em&gt; of $x(t)$. If $n(t)$ is input into the inverse system of $W$, denoted by $W^{-1}$, then the output is the original process $x(t)$ and system $W^{-1}$ is the corresponding &lt;em&gt;innovation fitler&lt;/em&gt;, as shown in the figure below.&lt;/p&gt;</description></item><item><title>Multiple Signal Classification (MUSIC)</title><link>https://shakaxi.github.io/posts/music/</link><pubDate>Wed, 25 Nov 2026 08:04:32 +0000</pubDate><guid>https://shakaxi.github.io/posts/music/</guid><description>&lt;p&gt;&#10;&lt;em&gt;Multiple signal classification (MUSIC)&lt;/em&gt; is a popular algorithm for spectrum estimation. This post is just written as a brief summary.&lt;/p&gt;&#10;&lt;div id="outline-container-headline-1" class="outline-2"&gt;&#10;&lt;h2 id="headline-1"&gt;&#10;MUSIC&#10;&lt;/h2&gt;&#10;&lt;div id="outline-text-headline-1" class="outline-text-2"&gt;&#10;&lt;p&gt;An observation signal vector can be expressed as&lt;/p&gt;&#10;\begin{align*}&#10; \mathbf{x} = \mathbf{A} \mathbf{s} + \mathbf{n},&#10;\end{align*}&#10;&lt;p&gt;where&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;$\mathbf{A} = \begin{bmatrix} \mathbf{a}(\omega_1) &amp;amp; \mathbf{a}(\omega_2) &amp;amp; \ldots &amp;amp; \mathbf{a}(\omega_r) \end{bmatrix}$ is a $N \times r$ Vandermonde matrix, $N &amp;gt; r$; Each column is a steering vector, e.g., $\mathbf{a}(\omega) \triangleq \begin{bmatrix} 1 \\ e^{j\omega} \\ e^{j2\omega} \\ \vdots \\ e^{j(N-1)\omega} \end{bmatrix}$.&lt;/li&gt;&#10;&lt;li&gt;$\mathbf{s} = \begin{bmatrix} s_1 \\ s_2 \\ \vdots \\ s_r \end{bmatrix}$ is a signal vector.&lt;/li&gt;&#10;&lt;li&gt;$\mathbf{n} \sim \mathcal{CN}(0, \sigma^2\mathbf{I}_N)$ is a complex additive Gaussian noise vector.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Then autocorrelation matrix of observation can be obtained by&lt;/p&gt;&#10;\begin{align*}&#10; \mathbf{R}_{\mathbf{x}} &amp;amp;= \mathbf{E}[ \mathbf{x} \mathbf{x}^H] \\&#10; &amp;amp;= \mathbf{A} \mathbf{R}_{\mathbf{s}} \mathbf{A}^H + \sigma^2 \mathbf{I}_N,&#10;\end{align*}&#10;&lt;p&gt;where $\mathbf{R}_{\mathbf{s}} \triangleq \mathbf{E}[ \mathbf{s} \mathbf{s}^H]$ is the autocorrelation of signal vector $\mathbf{s}$. In practice, the autocorrelation of observation is usually calculated based on a series of observation samples, i.e., $\hat{\mathbf{R}}_{\mathbf{x}} = \dfrac{1}{M} \sum_{i=1}^M \mathbf{x}_i \mathbf{x}_i^H$, where $M$ is the number of observation samples available.&lt;/p&gt;&#10;&lt;p&gt;&#10;The autocorrelation matrix of observation can be eigen value decomposed (EVD) as&lt;/p&gt;&#10;\begin{align*}&#10; \mathbf{R}_{\mathbf{x}} &amp;amp;= \begin{bmatrix} \mathbf{U}_{\mathbf{s}} &amp;amp; \mathbf{U}_{\mathbf{n}} \end{bmatrix}&#10; \begin{bmatrix} \mathbf{\Lambda}_{\mathbf{s}} &amp;amp; \mathbf{0} \\ \mathbf{0} &amp;amp; \sigma^2 \mathbf{I}_{N-r} \end{bmatrix}&#10; \begin{bmatrix} \mathbf{U}_{\mathbf{s}}^H \\ \mathbf{U}_{\mathbf{n}}^H \end{bmatrix},&#10;\end{align*}&#10;&lt;p&gt;where&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;The eigen vectors in $\mathbf{U}_{\mathbf{s}}$ corresponding to $p$ largest eigen values span the signal subspace.&lt;/li&gt;&#10;&lt;li&gt;The eigen vectors in $\mathbf{U}_{\mathbf{n}}$ corresponding to the remaining $N - r$ eigen values (equal to $\sigma^2$) span the noise subspace.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Considering the fact that the signal subspace and noise subspace are orthogonal and complementary to each other, i.e. $\text{span}(\mathbf{U}_{\mathbf{s}}) \perp \text{span}(\mathbf{U}_{\mathbf{n}})$, $\forall \mathbf{v} \in \text{span}(\mathbf{U}_{\mathbf{s}})$, $\mathbf{U}_{\mathbf{n}}^H \mathbf{v} = \mathbf{0}$. In order to depict the orthogonality quantitatively, a squared norm is introduced as follows.&lt;/p&gt;&#10;\begin{align*}&#10; d^2(\mathbf{v}) &amp;amp;= \| \mathbf{U}_{\mathbf{n}}^H \mathbf{v}\|^2 \\&#10; &amp;amp;= \mathbf{v}^H \mathbf{U}_{\mathbf{n}} \mathbf{U}_{\mathbf{n}}^H \mathbf{v} \\&#10; &amp;amp;= \mathbf{v}^H (\mathbf{I}_N - \mathbf{U}_{\mathbf{s}} \mathbf{U}_{\mathbf{s}}^H) \mathbf{v}&#10;\end{align*}&#10;&lt;p&gt;MUSIC uses the reciprocal of the squared norm $d^{-2}$ as the metric, in which case $r$ sharp peaks appear at the signal frequencies. The MUSIC spectrum can be expressed as&lt;/p&gt;&#10;\begin{align*}&#10; P_{\text{music}}(\omega) &amp;amp;= \frac{1}{d^2(\mathbf{a}(\omega))} \\&#10;&amp;amp;= \frac{1}{\mathbf{a}^H(\omega) \mathbf{U}_{\mathbf{n}} \mathbf{U}_{\mathbf{n}}^H \mathbf{a}(\omega)} \\&#10;&amp;amp; = \frac{1}{\mathbf{a}^H(\omega) (\mathbf{I}_N - \mathbf{U}_{\mathbf{s}} \mathbf{U}_{\mathbf{s}}^H) \mathbf{a}(\omega)},&#10;\end{align*}&#10;&lt;p&gt;where $\omega$ is the candidate frequency, and $\mathbf{a}(\omega)$ is the candidate steering vector.&lt;/p&gt;&#10;&lt;p&gt;&#10;So long as the number of component (e.g., $r$ above) is known in advance (as its drawback), MUSIC can outperforms DFT based schemes, since it can achieve &lt;em&gt;superresolutional&lt;/em&gt; estimation for the spectrum, rather than the discrete DFT bins.&lt;/p&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;</description></item><item><title>Sparse Array</title><link>https://shakaxi.github.io/posts/sparse_array/</link><pubDate>Wed, 25 Nov 2026 08:04:32 +0000</pubDate><guid>https://shakaxi.github.io/posts/sparse_array/</guid><description>&lt;div id="outline-container-headline-1" class="outline-2"&gt;&#10;&lt;h2 id="headline-1"&gt;&#10;Concepts&#10;&lt;/h2&gt;&#10;&lt;div id="outline-text-headline-1" class="outline-text-2"&gt;&#10;&lt;p&gt;Given a sparse array, the locations of its component antennas/sensors can be normalized to a minimum inter-antenna distance, denoted by $d$, e.g., typically $d = \lambda / 2$. Accordingly, a sparse array can be simply denoted by an integer set $\mathbb{S}$, and the locations of the antennas are $nd$, $n \in \mathbb{S}$.&lt;/p&gt;&#10;&lt;p&gt;&#10;Given a sparse array $\mathbb{S}$, its &lt;em&gt;difference coarray (DCA)&lt;/em&gt; is defined as&lt;/p&gt;&#10;\begin{align*}&#10; \mathbb{D} \triangleq \{n_1 - n_2 \mid n_1, n_2 \in \mathbb{S}\}.&#10;\end{align*}&#10;&lt;ul&gt;&#10;&lt;li&gt;Each entry in $\mathbb{D}$ is termed a &lt;em&gt;spatial lag&lt;/em&gt;.&lt;/li&gt;&#10;&lt;li&gt;The cardinality of DCA, i.e., $|\mathbb{D}|$, is termed &lt;em&gt;degree of freedom (DoF)&lt;/em&gt; of the sparse array $\mathbb{S}$.&lt;/li&gt;&#10;&lt;li&gt;Clearly, DCA is symmetric, i.e., $\forall n \in \mathbb{D}$, $-n \in \mathbb{D}$.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Let $\mathbb{U}$ denote the central ULA segment of $\mathbb{D}$. Its cardinality $|\mathbb{U}|$ is termed &lt;em&gt;uniform degree of freedom (UDoF)&lt;/em&gt;. Then, the number of uncorrelated sources which can be identified is $\dfrac{|\mathbb{U}| - 1}{2}$.&lt;/p&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;</description></item><item><title>Estimation of Signal Parameters by Rotational Invariance Techniques (ESPRIT)</title><link>https://shakaxi.github.io/posts/esprit/</link><pubDate>Wed, 25 Nov 2026 08:04:32 +0000</pubDate><guid>https://shakaxi.github.io/posts/esprit/</guid><description>&lt;p&gt;&#10;&lt;em&gt;Estimation of Signal Parameters by Rotational Invariance Techniques (ESPRIT)&lt;/em&gt;, as its name indicates, is an algorithm to estimate the frequency of sinusoid waves from a noisy mixture of them. Additionally, it can also be used for direction of arrival (DoA) estimation in a multiantenna system. This post describes its principle.&lt;/p&gt;&#10;&lt;p&gt;&#10;An observation signal vector can be expressed as&lt;/p&gt;&#10;\begin{align*}&#10; \mathbf{x} = \mathbf{A} \mathbf{s} + \mathbf{n},&#10;\end{align*}&#10;&lt;p&gt;where&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;$\mathbf{A} = \begin{bmatrix} \mathbf{a}(\omega_1) &amp;amp; \mathbf{a}(\omega_2) &amp;amp; \ldots &amp;amp; \mathbf{a}(\omega_r) \end{bmatrix}$ is a $N \times r$ Vandermonde matrix, $N &amp;gt; r$; Each column is a steering vector, e.g., $\mathbf{a}(\omega) \triangleq \begin{bmatrix} 1 \\ e^{j\omega} \\ e^{j2\omega} \\ \vdots \\ e^{j(N-1)\omega} \end{bmatrix}$.&lt;/li&gt;&#10;&lt;li&gt;$\mathbf{s} = \begin{bmatrix} s_1 \\ s_2 \\ \vdots \\ s_r \end{bmatrix}$ is a signal vector.&lt;/li&gt;&#10;&lt;li&gt;$\mathbf{n} \sim \mathcal{CN}(0, \sigma^2\mathbf{I}_N)$ is a complex additive Gaussian noise vector.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Then autocorrelation matrix of observation can be obtained by&lt;/p&gt;</description></item><item><title>Beam Pattern</title><link>https://shakaxi.github.io/posts/beam_pattern/</link><pubDate>Wed, 25 Nov 2026 08:04:32 +0000</pubDate><guid>https://shakaxi.github.io/posts/beam_pattern/</guid><description>&lt;div id="outline-container-headline-1" class="outline-2"&gt;&#10;&lt;h2 id="headline-1"&gt;&#10;Beamforming&#10;&lt;/h2&gt;&#10;&lt;div id="outline-text-headline-1" class="outline-text-2"&gt;&#10;&lt;p&gt;Around the decades, &lt;em&gt;multi-input multi-output (MIMO)&lt;/em&gt;, a.k.a. multiantenna transmission, has been the focus of the research relating to wireless communications, and attracted the interests and attentions from both academic circle and industrial area. By deliberately designing the complex-valued coefficients of each antenna elements, the transmitted power or its majority can be limited to a specified direction or area. The operation is termed &lt;em&gt;beamforming&lt;/em&gt;, and accordingly the weights of all the antenna elements involved are termed a &lt;em&gt;beamforming vector&lt;/em&gt; or a &lt;em&gt;beamformer&lt;/em&gt;. In this case, the SINR and the power of the received signal at the receiver can be remarkably enhanced.&lt;/p&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;</description></item><item><title>Matched Filter</title><link>https://shakaxi.github.io/posts/matched_filter/</link><pubDate>Wed, 25 Nov 2026 08:04:32 +0000</pubDate><guid>https://shakaxi.github.io/posts/matched_filter/</guid><description>&lt;p&gt;&#10;设时间\([0, T]\)内的观察信号\(r(t)\)为信号\(s(t)\)和噪声\(n(t)\)的叠加，也即&lt;/p&gt;&#10;\begin{align*}&#10; r(t) = s(t) + n(t), \quad t \in [0, T]&#10;\end{align*}&#10;&lt;p&gt;如果要设计一个冲激响应为\(h(t)\)的滤波器，使得其输出在\(t = T\)时的信噪比(signal to noise power ratio, SNR)最大，这样的滤波器称为匹配滤波器(matched filter, MF)。其冲激响应为&lt;/p&gt;&#10;\begin{align*}&#10; h(t) = C s^*(T - t),&#10;\end{align*}&#10;&lt;p&gt;其中，\(C\)为非零常数。&lt;/p&gt;&#10;&lt;p&gt;&#10;证明过程如下:&#10;滤波器在\(t = T\)时的SNR为&lt;/p&gt;&#10;\begin{align*}&#10; \gamma(T) = \frac{\left|\int_{-\infty}^{\infty}S(f)H(f)e^{j2 \pi f T}df\right|^2}&#10; {N_0 \left|\int_{-\infty}^{\infty}H(f)e^{j2 \pi f T}df\right|^2},&#10;\end{align*}&#10;&lt;p&gt;其中，\(S(f)\)和\(H(f)\)分别为\(s(t)\)和\(h(t)\)的Fourier变换，\(N_0\)为噪声的功率谱密度。&lt;/p&gt;&#10;&lt;p&gt;&#10;根据Cauchy-Schwartz不等式有&lt;/p&gt;&#10;\begin{align*}&#10; \gamma(T) &amp;amp;\le \frac{\left|\int_{-\infty}^{\infty}S(f)e^{j2 \pi f T}df\right|^2 \cdot \left|\int_{-\infty}^{\infty}H(f)e^{j2 \pi f T}df\right|^2}&#10; {N_0 \left|\int_{-\infty}^{\infty}H(f)e^{j2 \pi f T}df\right|^2} \\&#10;&amp;amp;= \frac{\left|\int_{-\infty}^{\infty}S(f)e^{j2 \pi f T}df\right|^2}{N_0}&#10;\end{align*}&#10;&lt;p&gt;当且仅当\(H(f) = C S^*(f) e^{-j 2 \pi f T}\)也即\(h(t) = C s^{*}(T - t)\)时等号成立，其中，\(C\)为非零常数。&lt;/p&gt;</description></item><item><title>Wiener Filter</title><link>https://shakaxi.github.io/posts/wiener_filter/</link><pubDate>Wed, 25 Nov 2026 08:04:32 +0000</pubDate><guid>https://shakaxi.github.io/posts/wiener_filter/</guid><description>&lt;p&gt;&#10;设观测信号\(x(t)\)为期望信号\(s(t)\)和噪声信号\(n(t)\)的叠加，也即&lt;/p&gt;&#10;\begin{align*}&#10; x(t) = s(t) + n(t).&#10;\end{align*}&#10;&lt;p&gt;其中，\(s(t)\)和\(n(t)\)是宽平稳过程，且相互联合宽平稳，观测信号\(x(t)\)和期望信号\(s(t)\)的自相关函数和互相关函数分别为\(R_x(\tau)\)、\(R_s(\tau)\)和\(R_{sx}(\tau)\)，功率谱密度函数及其互功率谱密度函数分别为\(S_x(f)\)、\(S_s(f)\)和\(S_{sx}(f)\)。&lt;/p&gt;&#10;&lt;p&gt;&#10;如果要设计一个冲激响应为\(h(t)\)的滤波器，使得其输出信号和期望信号\(s(t)\)的均方误差达到最小，这样的滤波器称为Wiener滤波器，又称均方滤波器。其冲激响应\(h(t)\)满足Wiener-Hopf方程。&lt;/p&gt;&#10;\begin{align*}&#10; \int_{-\infty}^{\infty}R_{x}(t - \tau) h^*(\tau)d\tau = R_{sx}(t).&#10;\end{align*}&#10;&lt;p&gt;相应地，其传递函数为&lt;/p&gt;&#10;\begin{align*}&#10; H^*(f) = \frac{S_{sx}(f)}{S_x(f)}.&#10;\end{align*}</description></item></channel></rss>