{ "metadata": { "name": "", "signature": "sha256:cfceac7136329bdf1ead59e6bb9dba2c1bd0edfb8c0b46e8c78dd8cde3abebf0" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "Empirical mode decomposition" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "- [Blog post](http://brocabrain.blogspot.co.uk/2011/11/python-for-hilbert-huang-transform.html)\n", "- [Jaidev's `pyhht` library](https://github.com/jaidevd/pyhht)\n", "- Nabil Freij's poster at EuroSciPy, 2014: *IDL, Python, Wavelet, EMD, and Licenses: The worries of a solar physicist*\n", "- allegedly doesn't need fftw" ] }, { "cell_type": "code", "collapsed": false, "input": [ "import numpy as np\n", "import matplotlib.pyplot as plt\n", "%matplotlib inline" ], "language": "python", "metadata": {}, "outputs": [], "prompt_number": 1 }, { "cell_type": "code", "collapsed": false, "input": [ "synthetic = np.loadtxt('benchmark_signals/synthetic.txt')" ], "language": "python", "metadata": {}, "outputs": [], "prompt_number": 2 }, { "cell_type": "code", "collapsed": false, "input": [ "from pyhht import EMD" ], "language": "python", "metadata": {}, "outputs": [], "prompt_number": 3 }, { "cell_type": "code", "collapsed": false, "input": [ "emd = EMD(synthetic)" ], "language": "python", "metadata": {}, "outputs": [ { "ename": "TypeError", "evalue": "'module' object is not callable", "output_type": "pyerr", "traceback": [ "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[1;31mTypeError\u001b[0m Traceback (most recent call last)", "\u001b[1;32m\u001b[0m in \u001b[0;36m\u001b[1;34m()\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[0memd\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mEMD\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0msynthetic\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m", "\u001b[1;31mTypeError\u001b[0m: 'module' object is not callable" ] } ], "prompt_number": 4 }, { "cell_type": "markdown", "metadata": {}, "source": [ "This module seems to be completely undocumented." ] }, { "cell_type": "code", "collapsed": false, "input": [], "language": "python", "metadata": {}, "outputs": [], "prompt_number": 4 } ], "metadata": {} } ] }