hsignal-0.1.0.1: Signal processingSource codeContentsIndex
Numeric.Signal
Portabilityuses FFI
Stabilityprovisional
Maintainerhaskell.vivian.mcphail <at> gmail <dot> com
Description
Signal processing functions
Synopsis
hamming :: Int -> Vector Double
pwelch :: Int -> Int -> Vector Double -> (Vector Double, Vector Double)
fir :: Int -> [(Double, Double)] -> Int -> Int -> Vector Double -> Vector Double
standard_fir :: Int -> [(Double, Double)] -> Vector Double
broadband_fir :: Int -> (Int, Int) -> Vector Double
freqzF :: Vector Double -> Vector Double -> Int -> Vector Double -> Vector Double
freqzN :: Vector Double -> Vector Double -> Int -> Int -> (Vector Double, Vector Double)
filter :: Vector Double -> Vector Double -> Int -> Vector Double -> Vector Double
broadband_filter :: Int -> (Int, Int) -> Vector Double -> Vector Double
analytic_signal :: Vector Double -> Vector (Complex Double)
analytic_power :: Vector (Complex Double) -> Vector Double
analytic_phase :: Vector (Complex Double) -> Vector Double
Documentation
hammingSource
:: Intlength
-> Vector Doublethe Hamming coeffficents
coefficients of a Hamming window
pwelchSource
:: Intsampling rate
-> Intwindow size
-> Vector Doubleinput signal
-> (Vector Double, Vector Double)(frequency index,power density)
Welch (1967) power spectrum density using periodogram/FFT method
firSource
:: Intorder (one less than the length of the filter)
-> [(Double, Double)]band edge frequency, nondecreasing, [0, f1, ..., f(n-1), 1] ^ band edge magnitude
-> Intgrid spacing
-> Inttransition width
-> Vector Doublesmoothing window (size is order + 1)
-> Vector Doublethe filter coefficients
produce an FIR filter
standard_fir :: Int -> [(Double, Double)] -> Vector DoubleSource
standard FIR filter | FIR filter with grid a power of 2 greater than the order, ramp = grid/16, hamming window
broadband_firSource
:: Intsampling rate
-> (Int, Int)(lower,upper) frequency cutoff
-> Vector Doublefilter coefficients
a broadband FIR
freqzFSource
:: Vector Doublezero coefficients
-> Vector Doublepole coefficients
-> Intsampling rate
-> Vector Doublefrequencies
-> Vector Doublefrequency response
determine the frequency response of a filter, given a vector of frequencies
freqzNSource
:: Vector Doublezero coefficients
-> Vector Doublepole coefficients
-> Intsampling rate
-> Intnumber of points
-> (Vector Double, Vector Double)(frequencies,response)
determine the frequency response of a filter, given a number of points and sampling rate
filterSource
:: Vector Doublezero coefficients
-> Vector Doublepole coefficients
-> Intsampling rate
-> Vector Doubleinput signal
-> Vector Doubleoutput signal
filters the signal
broadband_filterSource
:: Intsampling rate
-> (Int, Int)(lower,upper) frequency cutoff
-> Vector Doubleinput signal
-> Vector Doubleoutput signal
a broadband filter
analytic_signal :: Vector Double -> Vector (Complex Double)Source
an analytic signal is the original signal with Hilbert-transformed signal as imaginary component
analytic_power :: Vector (Complex Double) -> Vector DoubleSource
the power (amplitude^2 = v * (conj c)) of an analytic signal
analytic_phase :: Vector (Complex Double) -> Vector DoubleSource
the phase of an analytic signal
Produced by Haddock version 2.7.2