public class HaarWaveletTransform
extends java.lang.Object
Constructor and Description |
---|
HaarWaveletTransform() |
HaarWaveletTransform(boolean preserveEnergy) |
Modifier and Type | Method and Description |
---|---|
void |
inverseTransform(float[] data)
Does an in-place inverse HaarWavelet Wavelet Transform.
|
static boolean |
isPowerOfTwo(int number)
Checks if the number is a power of two.
|
static int |
log2(int bits)
A quick and simple way to calculate log2 of integers.
|
static int |
pow2(int power)
A quick way to calculate the power of two (2^power), by using bit shifts.
|
void |
transform(float[] s)
Does an in-place HaarWavelet wavelet transform.
|
public HaarWaveletTransform(boolean preserveEnergy)
public HaarWaveletTransform()
public void transform(float[] s)
s
- The data to transform.public void inverseTransform(float[] data)
data
- The data to transform.public static boolean isPowerOfTwo(int number)
number
- The number to check.public static int log2(int bits)
bits
- the integerpublic static int pow2(int power)
power
- The power.