Package smile.wavelet

Class Wavelet

java.lang.Object
smile.wavelet.Wavelet
Direct Known Subclasses:
BestLocalizedWavelet, CoifletWavelet, D4Wavelet, DaubechiesWavelet, HaarWavelet, SymletWavelet

public class Wavelet extends Object
A wavelet is a wave-like oscillation with an amplitude that starts out at zero, increases, and then decreases back to zero. Like the fast Fourier transform (FFT), the discrete wavelet transform (DWT) is a fast, linear operation that operates on a data vector whose length is an integer power of 2, transforming it into a numerically different vector of the same length. The wavelet transform is invertible and in fact orthogonal. Both FFT and DWT can be viewed as a rotation in function space.
  • Constructor Details

    • Wavelet

      public Wavelet(double[] coefficients)
      Constructor. Create a wavelet with given coefficients.
      Parameters:
      coefficients - wavelet coefficients.
  • Method Details

    • transform

      public void transform(double[] a)
      Discrete wavelet transform.
      Parameters:
      a - the signal vector.
    • inverse

      public void inverse(double[] a)
      Inverse discrete wavelet transform.
      Parameters:
      a - the signal vector.