wigner-ville-accelerate-0.1.0.2: Wigner-ville transform using the Accelerate library

Copyright[2017] Rinat Stryungis
LicenseBSD3
MaintainerRinat Stryungis <lazybonesxp@gmail.com>
Stabilityexperimental
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Data.Array.Accelerate.Math.Hilbert

Description

Computation of a Hilbert Transform using the accelerate-fft library. It just makes fft transform, remove signal with negative frequencies and makes inverse fft. The time complexity is O(n log n) in the size of the input.

The base implementation of fft uses a naïve divide-and-conquer fft implementation whose absolute performance is appalling. It also requires that you know on the Haskell side the size of the data being transformed, and that this is a power-of-two in each dimension.

For performance, compile accelerate-fft against the foreign library bindings (using any number of '-fllvm-ptx', and '-fllvm-cpu' for the accelerate-llvm-ptx, and accelerate-llvm-native backends, respectively), which have none of the above restrictions.

Synopsis

Documentation

hilbert :: (RealFloat e, Fractional (Exp e), Floating (Exp e), IsFloating e, FromIntegral Int e, Elt e, sh ~ DIM1) => sh -> Acc (Array DIM1 e) -> Acc (Array DIM1 (Complex e)) Source #

Hilbert transform. It removes a negative frequencies from the signal. The default implementation requires the array dimension to be a power of two (else error). The FFI-backed implementations ignore the Haskell-side size parameter (first argument).

makeComplex :: (Floating (Exp e), Elt e) => Exp e -> Exp (Complex e) Source #