Table Of Contents

Fast Hilbert Transform (G Dataflow)

Version:
    Last Modified: March 15, 2017

    Computes the fast Hilbert transform of a sequence.

    connector_pane_image
    datatype_icon

    reset

    A Boolean that specifies whether to reset the internal state of the node.

    True Resets the internal state of the node.
    False Does not reset the internal state of the node.

    This input is available only if you wire a double-precision, floating-point number to x.

    Default: False

    datatype_icon

    x

    Input signal.

    This input accepts a double-precision, floating-point number or a 1D array of double-precision, floating-point numbers.

    datatype_icon

    sample length

    Length of each set of data. The node performs computation for each set of data.

    sample length must be greater than zero.

    This input is available only if you wire a double-precision, floating-point number to x.

    Default: 100

    datatype_icon

    error in

    Error conditions that occur before this node runs.

    The node responds to this input according to standard error behavior.

    Standard Error Behavior

    Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

    error in does not contain an error error in contains an error
    If no error occurred before the node runs, the node begins execution normally.

    If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

    If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

    Default: No error

    datatype_icon

    Hilbert{x}

    The fast Hilbert transform of the input sequence.

    datatype_icon

    error out

    Error information.

    The node produces this output according to standard error behavior.

    Standard Error Behavior

    Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

    error in does not contain an error error in contains an error
    If no error occurred before the node runs, the node begins execution normally.

    If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

    If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

    Algorithm for Computing the Fast Hilbert Transform

    The Hilbert transform of a function x(t) is defined as

    h ( t ) = H { x ( t ) } = 1 π x ( τ ) t τ d τ

    Using Fourier identities, you can show the Fourier transform of the Hilbert transform of x(t) is

    h ( t ) H ( f ) = j sgn ( f ) X ( f )

    where x ( t ) X ( f ) is a Fourier transform pair and

    sgn ( f ) = { 1 f > 0 0 f = 0 1 f < 0
    .

    Performing the Discrete Implementation of the Hilbert Transform

    This node performs the discrete implementation of the Hilbert transform with the aid of the FFT routines based upon the h ( t ) H ( f ) Fourier transform pair by taking the following steps:

    1. Fourier transform the input sequence X.
      Y = F{X}

    2. Set the DC component to zero.
      Y0 = 0.0

    3. If the sequence Y is an even size, set the Nyquist component to zero.
      YNyq = 0

    4. Multiply the positive harmonics by -j.
    5. Multiply the negative harmonics by j. Call the new sequence H, which is of the formHk = -jsgn(k)Yk
    6. Inverse Fourier transform H to obtain the Hilbert transform of the input sequence.

    The output sequence Y = Inverse FFT [X] is complex and it is returned in one complex array: Y = (Yre,Yim).

    spd-note-note
    Note  

    Because this node sets the DC and Nyquist components to zero when the number of elements in the input sequence is even, you cannot always recover the original signal with an inverse Hilbert transform. The Hilbert transform works well with bandpass limited signals, which exclude the DC and the Nyquist components.

    Applications of Hilbert Transform

    You can use the Hilbert transform to accomplish the following tasks:

    • Extract instantaneous phase information and obtain the single-sideband spectra
    • Obtain the envelope of an oscillating signal
    • Detect echoes
    • Reduce sampling rates

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics