Coder Social home page Coder Social logo

hilbert-huang-transform's Introduction

Hilbert-Huang transform

A light version of the Hilbert-Huang Transform for Matlab. This version uses the Normalized Hilbert Transform to define and calculate the amplitude and phase.

How to use this software?

There are two essential functions to the hht code. It is the emd(·) and the hilbertSpectrum(·). The emd(·) function decomposes a one-dimensional array down to the fewest monocomponents ci(t) and one monotonic function r(t) that is needed to describe it.

Example

Lets considering the equation

v(t) = sin(ω0 t) + 0.5 cos(ω1 t2)

It is shown in the figure below

Empirical Mode Decomposition

As shown in the example code, we can decompose the voltage waveform v(t) using

[intrinsicModeFunctions, res] = emd(voltageWaveform);

This will decompose the voltage waveform v(t) down to two intrinsic mode functions (IMFs) and a residue so that

v(t) = Σ_ci(t)_ + r(t)

where ci(t) is IMF number i and r(t) is the residue. The IMFs and residue of the example waveform are shown in the figure below.

Hilbert Spectrum

The IMFs can be visualized using a Hilbert Spectrum. In the Hilbert Spectrum shows the instantaneous frequency f(t) the frequency components power (amplitude squared) as a function of time. To use the Hilbert Spectrum function write

medianFilterLength = 0.02 * samplingFrequency;
hilbertSpectrum(intrinsicModeFunctions, samplingFrequency, medianFilterLength)

where the medianFilterLength is the length of a median filter used to remove artifacts. In this example, the filter length is 2 % of the sampling rate. The figure below shows the Hilbert Spectrum of the example waveform v(t).

TODO:

  • Argument for fixed EMD
  • Ensure that residue output is correct

hilbert-huang-transform's People

Contributors

kulia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hilbert-huang-transform's Issues

hello

hello,friend.Is this hilbertSpectrum of your code a marginal HilbertSpectrum or energy HilbertSpectrum?I am looking forward to your reply!thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.