math.jwave.transforms.wavelets
Class Wavelet
- java.lang.Object
-
- math.jwave.transforms.wavelets.Wavelet
-
- All Implemented Interfaces:
- WaveletInterface
- Direct Known Subclasses:
- Coif06, Daub02, Daub03, Daub04, Haar02, Haar02Orthogonal, Lege02, Lege04, Lege06
public abstract class Wavelet extends java.lang.Object implements WaveletInterface
Basic class for one wavelet keeping coefficients of the wavelet function, the scaling function, the base wavelength, the forward transform method, and the reverse transform method.
-
-
Constructor Summary
Constructors Constructor and Description Wavelet()Constructor; predefine members to init values
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description double[]forward(double[] arrTime)Performs the forward transform for the given array from time domain to Hilbert domain and returns a new array of the same size keeping coefficients of Hilbert domain and should be of length 2 to the power of p -- length = 2^p where p is a positive integer.double[]getCoeffs()Returns a double array with the coeffs.intgetLength()Returns the number of coeffs (and scales).double[]getScales()Returns a double array with the scales (of a wavelet).intgetWaveLength()Returns the minimal wavelength for the used wavelet.double[]reverse(double[] arrHilb)Performs the reverse transform for the given array from Hilbert domain to time domain and returns a new array of the same size keeping coefficients of time domain and should be of length 2 to the power of p -- length = 2^p where p is a positive integer.
-
-
-
Method Detail
-
forward
public double[] forward(double[] arrTime)
Performs the forward transform for the given array from time domain to Hilbert domain and returns a new array of the same size keeping coefficients of Hilbert domain and should be of length 2 to the power of p -- length = 2^p where p is a positive integer.- Specified by:
forwardin interfaceWaveletInterface- Parameters:
arrTime- array keeping time domain coefficients- Returns:
- coefficients represented by frequency domain
-
reverse
public double[] reverse(double[] arrHilb)
Performs the reverse transform for the given array from Hilbert domain to time domain and returns a new array of the same size keeping coefficients of time domain and should be of length 2 to the power of p -- length = 2^p where p is a positive integer.- Specified by:
reversein interfaceWaveletInterface- Parameters:
arrHilb- array keeping frequency domain coefficients- Returns:
- coefficients represented by time domain
-
getWaveLength
public int getWaveLength()
Returns the minimal wavelength for the used wavelet.- Specified by:
getWaveLengthin interfaceWaveletInterface- Returns:
- the minimal wavelength for this basic wave
-
getLength
public int getLength()
Returns the number of coeffs (and scales).- Returns:
- integer representing the number of coeffs.
-
getCoeffs
public double[] getCoeffs()
Returns a double array with the coeffs.- Specified by:
getCoeffsin interfaceWaveletInterface- Returns:
- double array keeping the coeffs.
-
getScales
public double[] getScales()
Returns a double array with the scales (of a wavelet).- Specified by:
getScalesin interfaceWaveletInterface- Returns:
- double array keeping the scales.
-
-
DMelt 3.0 © DataMelt by jWork.ORG