Matlab,這個軟體我用了快十五年了,用起來相當順手。無奈他是個營利公司作的付費軟體,在作 Demo 展示或與別的語言介接時,常常要安裝一些額外的程式才能運作。Python 是我第一個考慮替換的方案。Python 有很相近的直譯式特性,語法也算簡單。打著「想完了方法,就寫完程式」的推薦詞,相當吸引懶惰的我。
Python 的套件很豐富;可以用 Numpy 作數學運算,用 Matplotlib 出美美的曲線圖,用 Py2exe 做成執行檔帶著跑,或是用 Portable Python 帶著到處寫程式或展示,十分方便。不過,小組在發展應用上,都是一貫使用 Java,我也只好放棄用 C 寫成的 Python,改用 Jython 了。
Jython 或許是發展時間比較短,所以沒有像 Python 那麼多額外的套件,不過他可以很容易跟原來的 Java 套件銜接,倒是解決了這樣的問題。畫圖的部分,我想就用 JFreeChart 來替代 Matplotlib,不過 Numpy 倒是沒什麼好的替代方案,可能要靠自己寫或 Java 的套件了。
Integrated Intelligent Processing Lab.
2010年7月8日 星期四
2010年7月5日 星期一
安裝 Python 2.6.5 + Numpy 1.4.1 + Matplotlib 0.99.3 + Eclipse PyDev 1.5.9
環境建製請依下列步驟順序:
安裝 Python
Matplotlib 目前只支援 Python 2.6,所以要選擇下載 Python 2.6.5。
下載位置:http://www.python.org/download/releases/
安裝 Numpy
下載位置:http://sourceforge.net/projects/numpy/files/
安裝 Scipy
下載位置:http://sourceforge.net/projects/scipy/files/
安裝 Matplotlib
下載位置:http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.3/
安裝 IPython
下載位置:http://ipython.scipy.org/moin/Download
安裝 Eclipse 及 PyDev (編輯環境)
下載 Eclipse,解壓縮後擊點即可開啟。
在 Eclipse中的「Help」=>「Software Updates...」=>「Available Software」 =>「Add Site...」
加入:http://pydev.org/updates
下載 PyDev Plug-in,之後便依照只是完成 Plug-in 的安裝。
在「Windows」=>「Performances」=>「Pydev」=>「Interpreter-Pydev」 指定 Python 執行檔的位置。
完成!
2010年4月25日 星期日
Top 5 Web Trends of 2009: Internet of Things
Written by Richard MacManus / September 11, 2009
This week ReadWriteWeb is running a series of posts analyzing the 5 biggest Web trends of 2009. So far we've explored these trends: Structured Data, The Real-Time Web, Personalization, Mobile Web / Augmented Reality. The fifth and final part of our series is about the Internet of Things, when real world objects (such as fridges, lights and toasters) get connected to the Internet. In 2009, this trend has ramped up and is adding a significant amount of new data to the Web.
In this post we'll see how companies as big as IBM and as small as Pachube are building up this new world of Internet data and services.
In this post we'll see how companies as big as IBM and as small as Pachube are building up this new world of Internet data and services.
2010年4月14日 星期三
2010年3月22日 星期一
Latex 測試
在 Blogger 上用 Latex 寫數學式子。
還蠻好用的,雖然在編輯預覽時候沒辦法正確顯示,要等到正式發佈才知道是否正確。除此之外,在數學式子外面還有一個淡淡的邊框,目前還沒找到去掉邊框的方法。而字型的顏色也沒辦法改,所以只能用背景是淺色的樣板。
測試: $x^n+y^n=z^n$
測試: $x^n+y^n=z^n$
訂閱:
文章 (Atom)