Class WaveletTransform

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected double denom  
      protected double g0  
      protected double g1  
      protected double g2  
      protected double g3  
      protected double h0  
      protected double h1  
      protected double h2  
      protected double h3  
      protected double Ig0  
      protected double Ig1  
      protected double Ig2  
      protected double Ig3  
      protected double Ih0  
      protected double Ih1  
      protected double Ih2  
      protected double Ih3  
      protected double sqrt_3  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void daubTrans​(double[] s)
      Forward wavelet transform
      void invDaubTrans​(double[] coef)
      Inverse wavelet transform
      double[] invoke​(double[] input)  
      protected void invTransform​(double[] a, int n)  
      protected void transform​(double[] a, int n)
      Forward wavelet transform.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • sqrt_3

        protected final double sqrt_3
      • denom

        protected final double denom
      • h0

        protected final double h0
      • h1

        protected final double h1
      • h2

        protected final double h2
      • h3

        protected final double h3
      • g0

        protected final double g0
      • g1

        protected final double g1
      • g2

        protected final double g2
      • g3

        protected final double g3
      • Ih0

        protected final double Ih0
      • Ih1

        protected final double Ih1
      • Ih2

        protected final double Ih2
      • Ih3

        protected final double Ih3
      • Ig0

        protected final double Ig0
      • Ig1

        protected final double Ig1
      • Ig2

        protected final double Ig2
      • Ig3

        protected final double Ig3
    • Constructor Detail

      • WaveletTransform

        public WaveletTransform()
    • Method Detail

      • daubTrans

        public void daubTrans​(double[] s)
        Forward wavelet transform
        Parameters:
        s - input vector
      • invDaubTrans

        public void invDaubTrans​(double[] coef)
        Inverse wavelet transform
        Parameters:
        coef - input vector
      • invoke

        public double[] invoke​(double[] input)
      • invTransform

        protected void invTransform​(double[] a,
                                    int n)
      • transform

        protected void transform​(double[] a,
                                 int n)

        Forward wavelet transform.

        Note that at the end of the computation the calculation wraps around to the beginning of the signal.

        Parameters:
        a - input signal, which will be replaced by its output transform
        n - length of the signal, and must be a power of 2