跳到主要內容

FFT

x = 0 : 0.1pi : 6pi
y(x) = sin(x) + sin(2x) + sin(3x)



The mininum sampling spacing dx = 0.1pi.
Niquist frequency = 1 / (2*dx) = 5 / pi.
fy = | fft(y - ybar) |, where ybar is mean of y.

N is the number of samples = 61.
The dominant terms in the frequency domain are at N = 4, 7, 10.

N
cycles
period
which signal?
1
0
infinite
ybar
4
3
6pi/3=2pi
sin(x)
7
6
6pi/6=pi
sin(2x)
10
9
6pi/9=2pi/3
sin(3x)
31
30
6pi/30=pi/5
1/(Niquist freq)

留言

這個網誌中的熱門文章

安裝 Linux mint 17 的efi分割區

2016 / 7 / 17 更新: 測試了Linux Mint 17.3,沒問題,我採用單系統,就是沒有Windows whatsoever installed 底下註1的提醒,不會出現,所以要自己記得要:用EFI模式開機、 記得自己增加一個EFI partition、製作這個partition時,種類選擇EFI 即可,下面的3.說的步驟可以省略。 我的EFI partition大小為200 MB,為sda1。這是完全用猜的。 Figure credit: linuxmint.com 2015 / 9 / 10 更新: 根據  Dual Boot openSUSE 13.2 and Windows 8.1 UEFI » TweakHound 的步驟,可以解決安裝好不能開機的問題。雖然他講的是針對OpenSuse的操作,但是開機、EFI分割區等概念是相通的。在OpenSuse 13.1上面實測是ok的。 2014 / 11 / 21  重點如下: 光碟要用EFI模式開機 硬碟中要有一個EFI分割區(至少35MB,不知道這個大小是否與系統有關) 硬碟分割的那個畫面, Device for bootloader installation 處,應指到2的EFl分割區(EFI boot partition) 根據資料來源的說明如下 *  VERY IMPORTANT STEP!!!  Near bottom of window,  "Device for bootloader installation"  should be the  EFI System Partition.  Select that one in the drop-down box. It will be a small (200-550MB) partition formatted as FAT32. It will likely be /dev/sda1 or /dev/sda2; but double-check that to be sure. 註1:硬碟分割的那個畫面,如果沒有EFI分割區,按下一步時系統會...