Skip to content

Commit c2eeb51

Browse files
committed
commit FFT complete ver.1
commit FFT complete ver.1
1 parent c5d2df1 commit c2eeb51

File tree

5 files changed

+63
-38
lines changed

5 files changed

+63
-38
lines changed

tex_project/FFT/fft.pdf

294 KB
Binary file not shown.

tex_project/FFT/fft.tex

Lines changed: 63 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@
4747

4848
\maketitle
4949

50+
\tableofcontents
51+
52+
5053
\section{개론}
5154

5255
n차 다항식 $A(x)$를 예시로 들라고하면 대부분 이렇게 대답할것이다.
@@ -205,14 +208,20 @@ \subsection{FFT}
205208
\section{$DFT^{-1}$ 역변환}
206209

207210
점값표현에 대해서 다음의 식이 성립이 한다.
211+
212+
$$ a_j = \dfrac{1}{n}\sum_{k=0}^{n-1} y_k\omega_{n}^{-kj}$$
213+
214+
$DFT$는 다음의 행렬 곱셈 식을 이용했다.
215+
216+
$
208217
\begin{pmatrix}
209218
y_0 \\
210219
y_1 \\
211220
y_2 \\
212221
\vdots \\
213-
y_n-1
222+
y_{n-1}
214223
\end{pmatrix}
215-
$=$
224+
=
216225
\begin{pmatrix}
217226
1 & 1 & 1 & 1 & \cdots & 1 \\
218227
1 & \omega_n & \omega_n^2 & \omega_n^3 & \cdots & \omega_n^{n-1} \\
@@ -226,19 +235,21 @@ \section{$DFT^{-1}$ 역변환}
226235
a_1 \\
227236
a_2 \\
228237
\vdots \\
229-
a_n-1
238+
a_{n-1}
230239
\end{pmatrix}
240+
$
231241

232-
역행렬이 존재하며, 역변환에 대해서 다음의 식이 성립이 한다.
242+
역행렬이 존재하며, 역변환에 대해서 다음의 식을 통해 원래의 값이 나온다.
233243

244+
$
234245
\begin{pmatrix}
235246
a_0 \\
236247
a_1 \\
237248
a_2 \\
238249
\vdots \\
239-
a_n-1
250+
a_{n-1}
240251
\end{pmatrix}
241-
$= \dfrac{1}{n}$
252+
= \dfrac{1}{n}
242253
\begin{pmatrix}
243254
1 & 1 & 1 & 1 & \cdots & 1 \\
244255
1 & \omega_n^{-1} & \omega_n^{-2} & \omega_n^{-3} & \cdots & \omega_n^{-(n-1)} \\
@@ -252,11 +263,11 @@ \section{$DFT^{-1}$ 역변환}
252263
y_1 \\
253264
y_2 \\
254265
\vdots \\
255-
y_n-1
266+
y_{n-1}
256267
\end{pmatrix}
268+
$
257269

258-
259-
\section{n = 4 일때 수행}
270+
\section{n = 4 일때 수행 예시}
260271

261272
$e^{i\theta} = \cos \theta + i \sin \theta$
262273

@@ -268,10 +279,10 @@ \subsection{$DFT$ 수행}
268279
$
269280
\omega^j = \left\{
270281
\begin{array}{rl}
271-
1 & \text{( j = 0, \theta = 0 )} \\
272-
i & \text{( j = 1, \theta = {1 \ over 2}\pi)} \\
273-
-1 & \text{( j = 2, \theta = \pi )} \\
274-
-i & \text{( j = 3, \theta = {3 \ over 2}\pi } \\
282+
1 & ( j = 0, \theta = 0 ) \\
283+
i & ( j = 1, \theta = \dfrac{1}{2}\pi) \\
284+
-1 & ( j = 2, \theta = \pi )\\
285+
-i & ( j = 3, \theta = \dfrac{3}{2}\pi) \\
275286
\end{array}
276287
\right.
277288
$
@@ -288,36 +299,39 @@ \subsection{$DFT$ 수행}
288299

289300
계수벡터에 $1, \omega ,\omega^2 , \omega^3 $을 넣었을때의 결과와 동일하다.
290301

302+
$
291303
\begin{pmatrix}
292304
y_0 \\
293305
y_1 \\
294306
y_2 \\
295307
y_3
296308
\end{pmatrix}
297-
$=$
309+
=
298310
\begin{pmatrix}
299311
a_0 + a_1 + a_2 + a_3 \\
300312
a_0 + \omega a_1 - a_2 -\omega a_3 \\
301313
a_0 - a_1 + a_2 - a_3 \\
302314
a_0 - \omega a_1 - a_2 + \omega a_3
303315
\end{pmatrix}
304-
316+
$
305317

306318

307319
\subsection{$DFT^{-1}$수행}
308320

309321
$
310322
\omega^j = \left\{
311323
\begin{array}{rl}
312-
1 & \text{( j = 0, \theta = 0 )} \\
313-
-i & \text{( j = -1, \theta = -{1 \ over 2}\pi)} \\
314-
-1 & \text{( j = -2, \theta = -\pi )} \\
315-
i & \text{( j = -3, \theta = -{3 \ over 2}\pi } \\
324+
1 & ( j = 0, \theta = 0 ) \\
325+
-i & ( j = -1, \theta = -\dfrac{1}{2}\pi) \\
326+
-1 & ( j = -2, \theta = -\pi ) \\
327+
i & ( j = -3, \theta = -\dfrac{3}{2}\pi ) \\
316328
\end{array}
317329
\right.
330+
$
331+
318332

319333
$-\omega = \omega^{-1}$
320-
$\footnote{참고: $\cos$은 우함수(y축 대칭) $\sin$은 기함수(원점대칭)이다. }
334+
\footnote{참고: $\cos$은 우함수(y축 대칭) $\sin$은 기함수(원점대칭)이다. }
321335

322336
\begin{enumerate}
323337
\item 분할: $\left\{y_0, y_2 \right\}$, $\left\{y_1, y_3\right\}$
@@ -326,64 +340,68 @@ \subsection{$DFT^{-1}$수행}
326340
\item 결합: $\left\{(y_0 +y_1 + y_2 + y_3), (y_0 - \omega y_1 + y_2 +\omega y_3) , \\(y_0 - y_1 +y_2 - y_3), (y_0 + \omega y_1 - y_2 - \omega y_3) \right\}$
327341
\end{enumerate}
328342

329-
343+
$
330344
\begin{pmatrix}
331345
a_0 \\
332346
a_1 \\
333347
a_2 \\
334348
a_3
335349
\end{pmatrix}
336-
$= \dfrac{1}{n}$
350+
= \dfrac{1}{n}
337351
\begin{pmatrix}
338352
y_0 + y_1 + y_2 + y_3 \\
339353
y_0 - \omega y_1 - y_2 +\omega y_3 \\
340354
y_0 - y_1 + y_2 - y_3 \\
341355
y_0 + \omega y_1 - y_2 - \omega y_3
342356
\end{pmatrix}
357+
$
358+
343359

344360
$y_n$에 곱해지는 계수와 $a_n$ 계수벡터를 풀어써서 행렬에 나타내면
345361

346362

347363
\begin{itemize}
348364
\item $a_1$
349365

350-
\begin{pmatrix}
351-
1 & -\omega & -1 & \omega
352-
\end{pmatrix}
366+
$
367+
\begin{pmatrix}
368+
1 & -\omega & -1 & \omega
369+
\end{pmatrix}
370+
\begin{pmatrix}
371+
1 & 1 & 1 & 1 \\
372+
1 & \omega & -1 & -\omega \\
373+
1 & -1 & 1 & -1 \\
374+
1 & -\omega & -1 & \omega
375+
\end{pmatrix}
376+
$
353377

354-
\begin{pmatrix}
355-
1 & 1 & 1 & 1 \\
356-
1 & \omega & -1 & -\omega \\
357-
1 & -1 & 1 & -1 \\
358-
1 & -\omega & -1 & \omega
359-
\end{pmatrix}
360-
361378
\item $a_2$
362379

380+
$
363381
\begin{pmatrix}
364382
1 & -1 & 1 & -1
365383
\end{pmatrix}
366-
367384
\begin{pmatrix}
368385
1 & 1 & 1 & 1 \\
369386
1 & \omega & -1 & -\omega \\
370387
1 & -1 & 1 & -1 \\
371388
1 & -\omega & -1 & \omega
372389
\end{pmatrix}
373-
390+
$
374391
\item $a_3$
392+
375393

394+
$
376395
\begin{pmatrix}
377396
1 & \omega & -1 & -\omega
378397
\end{pmatrix}
379-
380398
\begin{pmatrix}
381399
1 & 1 & 1 & 1 \\
382400
1 & \omega & -1 & -\omega \\
383401
1 & -1 & 1 & -1 \\
384402
1 & -\omega & -1 & \omega
385403
\end{pmatrix}
386-
404+
$
387405
\end{itemize}
388406

389407

@@ -407,15 +425,22 @@ \section{성능 개선}
407425

408426
분할의 상태를 만들어 놓기위해 임의 위치 이동이 행해진다.
409427

428+
410429
\begin{figure}[h!]
411430
\centering
412-
\includegraphics[scale=0.5]{pic1.PNG}
431+
\includegraphics[scale=0.4]{pic3.PNG}
432+
\caption{n = 8 일때,recursive시 분할되는 원소들}
433+
\end{figure}
434+
435+
\begin{figure}[h!]
436+
\centering
437+
\includegraphics[scale=0.5]{pic4.PNG}
413438
\end{figure}
414439

415440

416441
\begin{figure}[h!]
417442
\centering
418-
\includegraphics[scale=0.5]{pic1.PNG}
443+
\includegraphics[scale=0.5]{pic5.PNG}
419444
\caption{n = 8의 iterative-FFT 수행}
420445
\end{figure}
421446

tex_project/FFT/pic3.PNG

52.1 KB
Loading

tex_project/FFT/pic4.PNG

22.4 KB
Loading

tex_project/FFT/pic5.PNG

76.6 KB
Loading

0 commit comments

Comments
 (0)