2017年10月28日 星期六

ThinkDSP, a very good DSP material

ThinkDSP
井民全, Jing, mqjing@gmail.com
Back to the Main Page
ETA: 30 mins

Google doc: This Document

ThinkDSP 這本書從觀念開始了解數位訊號處理, 讓你可以寫程式觀察訊號的前後變化.

Purpose

這份文件的目的是讓你在 30 分鐘內, 建立學習數位訊號處理的環境.

Text Book

Setup Development Environment

Step 1: Install TensorFlow using Anaconda (view)
Step 2: Pull the source

Verification

Step 1: Start Jupyter
jupyter notebook

Step 2: Coding
from __future__ import print_function, division

%matplotlib inline

import thinkdsp
import thinkplot

import numpy as np

#import warnings
#warnings.filterwarnings('ignore')

from ipywidgets import interact, interactive, fixed
import ipywidgets as widgets
from IPython.display import display

# Initial sin and cos signal
cos_sig = thinkdsp.CosSignal(freq=440, amp=1.0, offset=0)
sin_sig = thinkdsp.SinSignal(freq=880, amp=0.5, offset=0)

# plot cos signal
cos_sig.plot()
thinkplot.config(xlabel='Time (s)')


See
Ctrl + [Enter]
Result
Fig. The sin signal.