Safe Haskell | None |
---|---|
Language | Haskell2010 |
Filter design and plotting of frequency responses.
Synopsis
- sinc :: (Floating n, Vector v n) => Int -> n -> v n
- srrc :: (Ord a, Floating a) => Int -> Int -> a -> [a]
- hanning :: (Floating n, Vector v n) => Int -> v n
- hamming :: (Floating n, Vector v n) => Int -> v n
- blackman :: (Floating n, Vector v n) => Int -> v n
- windowedSinc :: (Floating n, Vector v n) => Int -> n -> (Int -> v n) -> v n
- plotFrequency :: [Double] -> FilePath -> IO ()
Sinc Function
:: (Floating n, Vector v n) | |
=> Int | The length. Must be odd. |
-> n | The cutoff frequency (from 0 to 1) |
-> v n |
Compute a sinc function
Root raised cosine
Square root raised cosine
Windows
Compute a Hanning window.
Compute a Hamming window.
Compute a Blackman window.
Convenience Functions
:: (Floating n, Vector v n) | |
=> Int | The length |
-> n | The cutoff frequency (from 0 to 1) |
-> (Int -> v n) | The window function |
-> v n |
Compute a windowed sinc function