はじめに
ダウンサンプリング処理に於けるアンチエイリアシング・フィルタとして用いられる Nyquist N-th Band Filter について考える機会があった。本記事では定義と性質,その導出を記す。
\[
% general purpose
\newcommand{\ctext}[1]{\raise0.2ex\hbox{\textcircled{\scriptsize{#1}}}}
% mathematics
% general purpose
\DeclarePairedDelimiterX{\parens}[1]{\lparen}{\rparen}{#1}
\DeclarePairedDelimiterX{\braces}[1]{\lbrace}{\rbrace}{#1}
\DeclarePairedDelimiterX{\bracks}[1]{\lbrack}{\rbrack}{#1}
\DeclarePairedDelimiterX{\verts}[1]{|}{|}{#1}
\DeclarePairedDelimiterX{\Verts}[1]{\|}{\|}{#1}
\newcommand{\as}{{\quad\textrm{as}\quad}}
\newcommand{\st}{{\textrm{ s.t. }}}
\DeclarePairedDelimiterX{\setComprehension}[2]{\lbrace}{\rbrace}{#1\,\delimsize\vert\,#2}
\newcommand{\naturalNumbers}{\mathbb{N}}
\newcommand{\integers}{\mathbb{Z}}
\newcommand{\rationalNumbers}{\mathbb{Q}}
\newcommand{\realNumbers}{\mathbb{R}}
\newcommand{\complexNumbers}{\mathbb{C}}
\newcommand{\field}{\mathbb{F}}
\newcommand{\func}[2]{{#1}\parens*{#2}}
\newcommand*{\argmax}{\operatorname*{arg~max}}
\newcommand*{\argmin}{\operatorname*{arg~min}}
% set theory
\newcommand{\range}[2]{\braces*{#1,\dotsc,#2}}
\providecommand{\complement}{}\renewcommand{\complement}{\mathrm{c}}
\newcommand{\ind}[2]{\mathbbm{1}_{#1}\parens*{#2}}
\newcommand{\indII}[1]{\mathbbm{1}\braces*{#1}}
% number theory
\newcommand{\abs}[1]{\verts*{#1}}
\newcommand{\combi}[2]{{_{#1}\mathrm{C}_{#2}}}
\newcommand{\perm}[2]{{_{#1}\mathrm{P}_{#2}}}
\newcommand{\GaloisField}[1]{\mathrm{GF}\parens*{#1}}
% real analysis
\newcommand{\NapierE}{\mathrm{e}}
\newcommand{\sgn}[1]{\operatorname{sgn}\parens*{#1}}
\newcommand*{\rect}{\operatorname{rect}}
\newcommand{\cl}[1]{\operatorname{cl}#1}
\newcommand{\Img}[1]{\operatorname{Img}\parens*{#1}}
\newcommand{\dom}[1]{\operatorname{dom}\parens*{#1}}
\newcommand{\norm}[1]{\Verts*{#1}}
\newcommand{\floor}[1]{\left\lfloor#1\right\rfloor}
\newcommand{\ceil}[1]{\left\lceil#1\right\rceil}
\newcommand{\expo}[1]{\exp\parens*{#1}}
\newcommand{\sinc}{\operatorname{sinc}}
\newcommand{\nsinc}{\operatorname{nsinc}}
\newcommand{\GammaFunc}[1]{\Gamma\parens*{#1}}
\newcommand*{\erf}{\operatorname{erf}}
% inverse trigonometric functions
\newcommand{\asin}[1]{\operatorname{Sin}^{-1}{#1}}
\newcommand{\acos}[1]{\operatorname{Cos}^{-1}{#1}}
\newcommand{\atan}[1]{\operatorname{{Tan}^{-1}}{#1}}
\newcommand{\atanEx}[2]{\atan{\parens*{#1,#2}}}
% convolution
\newcommand{\cycConv}[2]{{#1}\underset{\text{cyc}}{*}{#2}}
% derivative
\newcommand{\deriv}[3]{\frac{\operatorname{d}^{#3}#1}{\operatorname{d}{#2}^{#3}}}
\newcommand{\derivLong}[3]{\frac{\operatorname{d}^{#3}}{\operatorname{d}{#2}^{#3}}#1}
\newcommand{\partDeriv}[3]{\frac{\operatorname{\partial}^{#3}#1}{\operatorname{\partial}{#2}^{#3}}}
\newcommand{\partDerivLong}[3]{\frac{\operatorname{\partial}^{#3}}{\operatorname{\partial}{#2}^{#3}}#1}
\newcommand{\partDerivIIHetero}[3]{\frac{\operatorname{\partial}^2#1}{\partial#2\operatorname{\partial}#3}}
\newcommand{\partDerivIIHeteroLong}[3]{{\frac{\operatorname{\partial}^2}{\partial#2\operatorname{\partial}#3}#1}}
% integral
\newcommand{\integrate}[5]{\int_{#1}^{#2}{#3}{\mathrm{d}^{#4}}#5}
\newcommand{\LebInteg}[4]{\int_{#1} {#2} {#3}\parens*{\mathrm{d}#4}}
% complex analysis
\newcommand{\conj}[1]{\overline{#1}}
\providecommand{\Re}{}\renewcommand{\Re}[1]{{\operatorname{Re}{\parens*{#1}}}}
\providecommand{\Im}{}\renewcommand{\Im}[1]{{\operatorname{Im}{\parens*{#1}}}}
\newcommand{\Arg}{\operatorname{Arg}}
\newcommand{\Log}{\operatorname{Log}}
% Laplace transform
\newcommand{\LPLC}[1]{\operatorname{\mathcal{L}}\parens*{#1}}
\newcommand{\ILPLC}[1]{\operatorname{\mathcal{L}}^{-1}\parens*{#1}}
% Discrete Fourier Transform
\newcommand{\DFT}[1]{\mathrm{DFT}\parens*{#1}}
% Z transform
\newcommand{\ZTrans}[1]{\operatorname{\mathcal{Z}}\parens*{#1}}
\newcommand{\IZTrans}[1]{\operatorname{\mathcal{Z}}^{-1}\parens*{#1}}
% linear algebra
\newcommand{\bm}[1]{{\boldsymbol{#1}}}
\newcommand{\matEntry}[3]{#1\bracks*{#2}\bracks*{#3}}
\newcommand{\matPart}[5]{\matEntry{#1}{#2:#3}{#4:#5}}
\newcommand{\diag}[1]{\operatorname{diag}\parens*{#1}}
\newcommand{\tr}[1]{\operatorname{tr}{\parens*{#1}}}
\newcommand{\inprod}[2]{\left\langle#1,#2\right\rangle}
\newcommand{\HadamardProd}{\odot}
\newcommand{\HadamardDiv}{\oslash}
\newcommand{\Span}[1]{\operatorname{span}\bracks*{#1}}
\newcommand{\Ker}[1]{\operatorname{Ker}\parens*{#1}}
\newcommand{\rank}[1]{\operatorname{rank}\parens*{#1}}
% vector
% unit vector
\newcommand{\vix}{\bm{i}_x}
\newcommand{\viy}{\bm{i}_y}
\newcommand{\viz}{\bm{i}_z}
% graph theory
\newcommand{\neighborhood}{\mathcal{N}}
% probability theory
\newcommand{\PDF}[2]{\operatorname{PDF}\bracks*{#1,\;#2}}
\newcommand{\Ber}[1]{\operatorname{Ber}\parens*{#1}}
\newcommand{\Beta}[2]{\operatorname{Beta}\parens*{#1,#2}}
\newcommand{\ExpDist}[1]{\operatorname{ExpDist}\parens*{#1}}
\newcommand{\ErlangDist}[2]{\operatorname{ErlangDist}\parens*{#1,#2}}
\newcommand{\PoissonDist}[1]{\operatorname{PoissonDist}\parens*{#1}}
\newcommand{\GammaDist}[2]{\operatorname{Gamma}\parens*{#1,#2}}
\newcommand{\cind}[2]{\ind{#1\left| #2\right.}} % conditional indicator function
\providecommand{\Pr}{}\renewcommand{\Pr}[1]{\operatorname{Pr}\parens*{#1}}
\DeclarePairedDelimiterX{\cPrParens}[2]{(}{)}{#1\,\delimsize\vert\,#2}
\newcommand{\cPr}[2]{\operatorname{Pr}\cPrParens{#1}{#2}}
\newcommand{\E}[2]{\operatorname{E}_{#1}\bracks*{#2}}
\newcommand{\cE}[3]{\E{#1}{\left.#2\right|#3}}
\newcommand{\Var}[2]{\operatorname{Var}_{#1}\bracks*{#2}}
\newcommand{\Cov}[2]{\operatorname{Cov}\bracks*{#1,#2}}
\newcommand{\CovMat}[1]{\operatorname{Cov}\bracks*{#1}}
% signal processing
% Discrete Time Fourier Transform
\newcommand{\DTFT}[1]{\mathrm{DTFT}\parens*{#1}}
\newcommand{\IDTFT}[1]{\mathrm{IDTFT}\parens*{#1}}
% computer science
% programming
\newcommand{\plpl}{\mathrel{++}}
\newcommand{\pleq}{\mathrel{+}=}
\newcommand{\asteq}{\mathrel{*}=}
\]
定義
\[
\newcommand{\HDTFT}{H_\text{DTFT}}
\newcommand{\INyq}{I_\text{Nyq}}
\]
$N\in\naturalNumbers,\;N\geq 2,\;\INyq\coloneqq\cup_{k\in\integers}2\pi\parens*{\bracks{-1/N,1/N}+k}$ とする。係数 $h:\integers\to\complexNumbers$ の,正規化角周波数を引数とする DTFT を $\HDTFT$ とする。これが次の性質を満たすフィルタを Nyquist N-th Band Filter と呼ぶ。
- $\HDTFT(-\Omega) = \HDTFT(\Omega)$
- $\Omega\in\realNumbers\setminus\INyq\Rightarrow\HDTFT(\Omega)=0$
- $\sum_{k=0}^{N-1}\HDTFT\parens*{\Omega-\frac{k}{N}2\pi} = 1$
このフィルタは $1/N$ ダウンサンプリング処理に於けるアンチエイリアシング・フィルタとして用いられる。
Nyquist N-th Band Filter の性質
- $h$ は偶関数である
- $\HDTFT(\pi/N) = 1/2$
- $h(0)=1/N$
- $h(n)=0\quad(N\mid n,\;n\neq 0)$
性質の導出
性質 1
\[
\begin{align*}
h(-n) &= \frac{1}{2\pi}\integrate{-\pi}{\pi}{\HDTFT(\Omega)\exp\parens{-i\Omega n}}{}{\Omega} = \frac{1}{2\pi}\integrate{-\pi}{\pi}{\HDTFT(-\Omega)\exp\parens{i(-\Omega) n}}{}{\Omega} \\
&= -\frac{1}{2\pi}\integrate{\pi}{-\pi}{\HDTFT(\Omega’)\exp\parens{i\Omega’ n}}{}{\Omega’} \quad (\text{変数変換:}\Omega = -\Omega’) \\
&= \frac{1}{2\pi}\integrate{-\pi}{\pi}{\HDTFT(\Omega’)\exp\parens{i\Omega’ n}}{}{\Omega’} = h(n)
\end{align*}
\]
性質 2
定義の条件 3 で $\Omega=\pi/N$ として定義の条件 2 を適用すると $1 = \HDTFT(\pi/N) + \HDTFT(-\pi/N)$ である。これと定義の条件 2 より性質が従う。
性質 3, 4
定義の条件 3 の両辺を逆 DTFT する。任意の整数 $n$ に対して次式が成り立つ。
\[
\begin{align*}
\text{RHS} &= \frac{1}{2\pi}\integrate{-\pi}{\pi}{\exp(i\Omega n)}{}{\Omega} \\
\text{LHS} &= \sum_{k=0}^{N-1} \IDTFT{\Omega\mapsto\HDTFT\parens*{\Omega-\frac{k}{N}2\pi}}(n) = \sum_{k=0}^{N-1} \IDTFT{\DTFT{m\mapsto h(m)\exp\parens*{i\frac{k}{N}2\pi m}}}(n) \\
&= \sum_{k=0}^{N-1}h(n)\exp\parens*{i\frac{k}{N}2\pi n} = h(n)\sum_{k=0}^{N-1}\exp\parens*{i\frac{k}{N}2\pi n}
\end{align*}
\]
上式に於いて $n=0$ のときは $1 = Nh(0)$ であるので,$h(0)=1/N$ が従う。また,$n=mN\;(m\in\integers,\;m\neq 0)$ のとき $0 = Nh(n)$ であるので,$h(n)=0$ が従う。
注意
定義の条件 2 は他の条件から導かれるものではない(独立である)。条件 2 を取り除くと,極端な例として恒等関数 $\HDTFT\equiv 1/N$ が定義の条件を満たし,性質の 2 が成り立たなくなる。