Git Product home page Git Product logo

hilbert's Introduction

Build Status codecov

Hilbert transform for whisker analysis

This python code for decomposing a whisking bout into phase, amplitude, and offset using the Hilbert Transform is based on the Matlab code developed in the Neurophysics Lab at UCSD.

Primary motor cortex reports efferent control of vibrissa motion on multiple timescales DN Hill, JC Curtis, JD Moore, D Kleinfeld - Neuron, 2011

Please also see Dan Hills GitHub repo for further information.

Computationally, the Hilbert Transform is the Fourier Transform with zero amplitude at all negative frequencies. This is equivalent to phase-shifting the time-domain signal by 90 degrees at all frequencies and then adding this as an imaginary signal to the original signal. So for example, the signal cos(t) becomes cos(t) + i sin(t).

The phase of the original signal is taken as the angle of this new complex signal.

inputs

  • signal - vector containing whisker angle
  • Fs - sampling rate (Hz)
  • bp - frequency range for band-pass filtering

outputs.

  • phase - phase estimate from Hilbert transform
  • filtered_signal - input signal after filtering

hilbert's People

Contributors

ahoimarie avatar tolkiehn avatar

Watchers

 avatar

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.