A Discrete Fourier Transform (DFT), a Fast Wavelet Transform (FWT), and a Wavelet Packet Transform (WPT) algorithm in 1-D, 2-D, and 3-D using normalized orthogonal (orthonormal) Haar, Coiflet, Daubechie, Legendre and normalized biorthognal wavelets in Java.
made changes to the MathTools isBinary method and added a unit test. Unit test was needed do to the number of wrong answers on the internet. I would be concerned mostly about testing 0 and 1. I did not include a special case for negative numbers. But, if programmers are asking if a negative number is a power of two, then maybe they have larger issues???
made changes to the MathTools isBinary method and added a unit test. Unit test was needed do to the number of wrong answers on the internet. I would be concerned mostly about testing 0 and 1. I did not include a special case for negative numbers. But, if programmers are asking if a negative number is a power of two, then maybe they have larger issues???