thatguy2048

thatguy2048 / DaubechiesD4Wavelet / 0.1.1

README.md
This algorithm performs the Haar Wavelet Transform (or inverse transform) on a one dimensional signal. 

This algorithm expects a signal which whose length is divisible by 2, and will perform the transform for as long as the length can be divided by 2, while still being evenly divisible.  Unless a max number of iterations is specified by an int before the input signal.

Sample Input
[1,[1,2,3,1,2,3,4,0]]
Sample Output
{"transform":[2.69901760217,2.34546421158,4.37205020963,1.8971764754999998,1.44888873942,-0.38822856765000013,2.4148145657,-0.64704761275],"i":1}

Inverse Input
[[5.65685424933524,2.1516122217235534e-13,1.8660254037497057,0.1339745962132557,1.44888873942,-0.38822856765000013,2.4148145657,-0.64704761275],3]
Invers Output
[0.9999999999129452,1.9999999998886333,2.999999999875018,0.9999999999147142,1.9999999998771734,2.9999999998447104,3.999999999853363,-5.548117520959295e-11]