Class MyWavelet


  • public class MyWavelet
    extends Lift
    • Nested Class Summary

      • Nested classes/interfaces inherited from class de.gsi.math.spectra.wavelet.Lift

        Lift.Direction
    • Constructor Summary

      Constructors 
      Constructor Description
      MyWavelet()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void forwardTrans​(double[] vec)
      Simple wavelet Lifting Scheme forward transform
      void inverseTrans​(double[] vec)
      Default two step Lifting Scheme inverse wavelet transform
      protected void normalize​(double[] S, int N, Lift.Direction direction)  
      protected void predict​(double[] S, int N, Lift.Direction direction)
      Predict step, to be defined by the subclass
      protected void update​(double[] S, int N, Lift.Direction direction)
      Update step, to be defined by the subclass
      protected void updateOne​(double[] S, int N, Lift.Direction direction)  
      • Methods inherited from class de.gsi.math.spectra.wavelet.Lift

        merge, split
      • Methods inherited from class java.lang.Object

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

      • MyWavelet

        public MyWavelet()
    • Method Detail

      • forwardTrans

        public void forwardTrans​(double[] vec)
        Description copied from class: Lift

        Simple wavelet Lifting Scheme forward transform

        forwardTrans is passed an array of doubles. The array size must be a power of two. Lifting Scheme wavelet transforms are calculated in-place and the result is returned in the argument array.

        The result of forwardTrans is a set of wavelet coefficients ordered by increasing frequency and an approximate average of the input data set in vec[0]. The coefficient bands follow this element in powers of two (e.g., 1, 2, 4, 8...).

        Overrides:
        forwardTrans in class Lift
        Parameters:
        vec - input vector
      • inverseTrans

        public void inverseTrans​(double[] vec)

        Default two step Lifting Scheme inverse wavelet transform

        inverseTrans is passed the result of an ordered wavelet transform, consisting of an average and a set of wavelet coefficients. The inverse transform is calculated in-place and the result is returned in the argument array.

        Overrides:
        inverseTrans in class Lift
        Parameters:
        vec - input vector
      • normalize

        protected void normalize​(double[] S,
                                 int N,
                                 Lift.Direction direction)
      • predict

        protected void predict​(double[] S,
                               int N,
                               Lift.Direction direction)
        Description copied from class: Lift
        Predict step, to be defined by the subclass
        Specified by:
        predict in class Lift
        Parameters:
        S - input array
        N - size of region to act on (from 0..N-1)
        direction - forward or inverse transform
      • update

        protected void update​(double[] S,
                              int N,
                              Lift.Direction direction)
        Description copied from class: Lift
        Update step, to be defined by the subclass
        Specified by:
        update in class Lift
        Parameters:
        S - input array
        N - size of region to act on (from 0..N-1)
        direction - forward or inverse transform
      • updateOne

        protected void updateOne​(double[] S,
                                 int N,
                                 Lift.Direction direction)