Math::Wavelet::Haar - Perl extension for transforming data with the Haar Wavelet
use Math::Wavelet::Haar qw(:all); my @test = qw(1 2 3 4 5 6 7 8); my @result = transform1D(@test); my @test = ([0,1,2,3],[1,2,3,4],[2,3,4,5],[3,4,5,6]); my @result = transform2D(@test); my @test = qw(36 -16 -4 -4 -1 -1 -1 -1); my @result = detransform1D(@test); my @test = ([48,-16,-4,-4],[-16,0,0,0],[-4,0,0,0],[-4,0,0,0]); my @result = detransform2D(@test); my @test = ([48,-16,-4,-4],[-16,0,0,0],[-4,0,0,0],[-4,0,0,0]); @result = detransform2D(transform2D(@test)); @result == @test;
Math::Wavelet::Haar is a module for performing a discrete wavelet transform using the Haar wavelet.
Wikipedia articles on the Haar Wavlet, Discrete Wavelet Transforms, and lots and lots of math
Ryan Voots <lt>simcop2387@yahoo.com<gt>
Copyright (C) 2007 Ryan Voots
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
4 POD Errors
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
You forgot a '=back' before '=head1'
To install Math::Wavelet::Haar, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Math::Wavelet::Haar
CPAN shell
perl -MCPAN -e shell install Math::Wavelet::Haar
For more information on module installation, please visit the detailed CPAN module installation guide.