Copyright | (c) Amy de Buitléir 2014 |
---|---|

License | BSD-style |

Maintainer | amy@nualeargais.ie |

Stability | experimental |

Portability | portable |

Safe Haskell | Safe-Inferred |

Language | Haskell98 |

Haar Wavelet transforms.

- haar1D :: (Num a, Fractional a) => [a] -> [a]
- unHaar1D :: (Num a, Fractional a) => [a] -> [a]
- haar2D :: (Num a, Fractional a) => [[a]] -> [[a]]
- unHaar2D :: (Num a, Fractional a) => [[a]] -> [[a]]

# Documentation

haar1D :: (Num a, Fractional a) => [a] -> [a] Source

Perform a Haar wavelet transform on a one-dimensional array. The length of the array must be a power of 2, otherwise an error will occur.

unHaar1D :: (Num a, Fractional a) => [a] -> [a] Source

Undo a Haar wavelet transform, recovering the original one-dimensional array.

haar2D :: (Num a, Fractional a) => [[a]] -> [[a]] Source

Perform a Haar wavelet transform on a two-dimensional array. The number of rows and columns must both be powers of 2, otherwise an error will occur.

unHaar2D :: (Num a, Fractional a) => [[a]] -> [[a]] Source

Undo a Haar wavelet transform, recovering the original two-dimensional array.