JSci.maths.wavelet.haar
Class MultiSplineHaar

java.lang.Object
  extended by JSci.maths.wavelet.Multiresolution
      extended by JSci.maths.wavelet.haar.MultiSplineHaar
All Implemented Interfaces:
NumericalConstants, Filter

public final class MultiSplineHaar
extends Multiresolution
implements Filter, NumericalConstants

Haar Wavelets


Field Summary
protected static int filtretype
           
(package private) static double[] vg
           
(package private) static double[] vog
           
 
Fields inherited from interface JSci.maths.NumericalConstants
GAMMA, GOLDEN_RATIO, LOG10, SQRT2, SQRT2PI, TWO_PI
 
Constructor Summary
MultiSplineHaar()
           
 
Method Summary
 MultiscaleFunction dualScaling(int n0, int k)
           
 MultiscaleFunction dualWavelet(int n0, int k)
           
 int getFilterType()
          This method is used to compute how the number of scaling functions changes from on scale to the other.
 double[] highpass(double[] gete)
          This is the implementation of the highpass Filter.
 double[] highpass(double[] v, double[] param)
          This is the implementation of the highpass Filter.
 double[] lowpass(double[] gete)
          lowpass filter
 double[] lowpass(double[] v, double[] param)
          lowpass filter
 int previousDimension(int k)
          This method return the number of "scaling" functions at the previous scale given a number of scaling functions.
 MultiscaleFunction primaryScaling(int n0, int k)
           
 MultiscaleFunction primaryWavelet(int n0, int k)
           
static PiecewiseConstant scaling(int n0, int k)
           
static PiecewiseConstant wavelet(int n0, int k)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filtretype

protected static final int filtretype
See Also:
Constant Field Values

vg

static final double[] vg

vog

static final double[] vog
Constructor Detail

MultiSplineHaar

public MultiSplineHaar()
Method Detail

getFilterType

public int getFilterType()
This method is used to compute how the number of scaling functions changes from on scale to the other. Basically, if you have k scaling function and a Filter of type t, you'll have 2*k+t scaling functions at the next scale (dyadic case). Notice that this method assumes that one is working with the dyadic grid while the method "previousDimension" define in the interface "Filter" doesn't.

Specified by:
getFilterType in class Multiresolution

primaryScaling

public MultiscaleFunction primaryScaling(int n0,
                                         int k)
Specified by:
primaryScaling in class Multiresolution

dualScaling

public MultiscaleFunction dualScaling(int n0,
                                      int k)
Specified by:
dualScaling in class Multiresolution

primaryWavelet

public MultiscaleFunction primaryWavelet(int n0,
                                         int k)
Specified by:
primaryWavelet in class Multiresolution

dualWavelet

public MultiscaleFunction dualWavelet(int n0,
                                      int k)
Specified by:
dualWavelet in class Multiresolution

previousDimension

public int previousDimension(int k)
This method return the number of "scaling" functions at the previous scale given a number of scaling functions. The answer is always smaller than the provided value (about half since this is a dyadic implementation). This relates to the same idea as the "Filter type". It is used by the interface "Filter".

Specified by:
previousDimension in interface Filter
Overrides:
previousDimension in class Multiresolution

lowpass

public double[] lowpass(double[] v,
                        double[] param)
Description copied from interface: Filter
lowpass filter

Specified by:
lowpass in interface Filter
param - a parameter for the filter

highpass

public double[] highpass(double[] v,
                         double[] param)
This is the implementation of the highpass Filter. It is used by the interface "Filter". Highpass filters are normalized in order to get L2 orthonormality of the resulting wavelets (when it applies). See the class DiscreteHilbertSpace for an implementation of the L2 integration.

Specified by:
highpass in interface Filter
param - a parameter for the filter

lowpass

public double[] lowpass(double[] gete)
Description copied from interface: Filter
lowpass filter

Specified by:
lowpass in interface Filter

highpass

public double[] highpass(double[] gete)
This is the implementation of the highpass Filter. It is used by the interface "Filter". Highpass filters are normalized in order to get L2 orthonormality of the resulting wavelets (when it applies). See the class DiscreteHilbertSpace for an implementation of the L2 integration.

Specified by:
highpass in interface Filter

scaling

public static PiecewiseConstant scaling(int n0,
                                        int k)

wavelet

public static PiecewiseConstant wavelet(int n0,
                                        int k)