Skip to content
forked from wn0112/hilbert

Hilbert transform funcion,与matlab的hilbert函数输出结果一致

Notifications You must be signed in to change notification settings

tian0zhi/hilbert-c

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Hilbert transform

fftw3 is required.

The function's output is same with scipy which is a digital process package of python.

hilbert_r2c()

  • input: double array
  • output: fftw_complex array

hilbert_r2r()

  • input: double array
  • output: double array

How to compare result with scipy:

import scipy.signal.signaltools as sigtool
import numpy as np

N = 16
x = np.linspace(1, N, N)

print(sigtool.hilbert(x))   # same result with hilbert_r2c()
print(np.abs(sigtool.hilbert(x))) # same result with hilbert_r2r()

About

Hilbert transform funcion,与matlab的hilbert函数输出结果一致

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%