Copyright | (c) 2011 Bryan O'Sullivan |
---|---|

License | BSD3 |

Maintainer | bos@serpentine.com |

Stability | experimental |

Portability | portable |

Safe Haskell | None |

Language | Haskell98 |

Fourier-related transformations of mathematical functions.

These functions are written for simplicity and correctness, not speed. If you need a fast FFT implementation for your application, you should strongly consider using a library of FFTW bindings instead.

# Type synonyms

# Discrete cosine transform

dct_ :: Vector CD -> Vector Double Source

Discrete cosine transform (DCT-II). Only real part of vector is transformed, imaginary part is ignored.

idct :: Vector Double -> Vector Double Source

Inverse discrete cosine transform (DCT-III). It's inverse of
`dct`

only up to scale parameter:

(idct . dct) x = (* length x)

idct_ :: Vector CD -> Vector Double Source

Inverse discrete cosine transform (DCT-III). Only real part of vector is transformed, imaginary part is ignored.