fftw3 is required.
The function's output is same with scipy which is a digital process package of python.
input
: double arrayoutput
: fftw_complex array
input
: double arrayoutput
: 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()