org.jscience.mathematics.wavelet.daubechies4
Class Wavelet4

java.lang.Object
  extended by org.jscience.mathematics.wavelet.MultiscaleFunction
      extended by org.jscience.mathematics.wavelet.daubechies4.Wavelet4
All Implemented Interfaces:
java.lang.Cloneable

public final class Wavelet4
extends MultiscaleFunction
implements java.lang.Cloneable

Daubechies wavelets adapted to the interval by Meyer. Thanks to Pierre Vial for the filters.


Constructor Summary
Wavelet4()
          Creates a new Wavelet4 object.
Wavelet4(int N0, int K)
          Creates a new Wavelet4 object.
 
Method Summary
 java.lang.Object clone()
          Return a copy of this object
 int dimension()
          Number of scaling functions at scale where this wavelet belongs.
 int dimension(int jfin)
          Given that the wavelet is written in terms of a scale containing dimension() scaling functions and going jfin scales ahead (iterating jfin times), tells you how many scaling functions you'll need.
 boolean equals(java.lang.Object a)
          Check if another object is equal to this Wavelet8 object
 double[] evaluate(int j1)
          Return as an array the sampled values of the function
 int getFilterType()
          This method is used to compute how the number of scaling functions changes from on scale to the other.
 int position()
          Tells you what is the number of this wavelet.
 void setParameters(int N0, int K)
          Set the parameters for this object
 java.lang.String toString()
          Return a String representation of the object
 
Methods inherited from class org.jscience.mathematics.wavelet.MultiscaleFunction
mass, mass
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Wavelet4

public Wavelet4(int N0,
                int K)
Creates a new Wavelet4 object.

Parameters:
N0 - DOCUMENT ME!
K - DOCUMENT ME!

Wavelet4

public Wavelet4()
Creates a new Wavelet4 object.

Method Detail

equals

public boolean equals(java.lang.Object a)
Check if another object is equal to this Wavelet8 object

Specified by:
equals in class MultiscaleFunction
Parameters:
a - DOCUMENT ME!
Returns:
DOCUMENT ME!

toString

public java.lang.String toString()
Return a String representation of the object

Specified by:
toString in class MultiscaleFunction
Returns:
DOCUMENT ME!

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 2k+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 MultiscaleFunction
Returns:
DOCUMENT ME!

setParameters

public void setParameters(int N0,
                          int K)
Set the parameters for this object

Parameters:
N0 - number of scaling function on the scale of this object
K - position or number of this object
Throws:
IllegalScalingException - if N0 is not large enough

clone

public java.lang.Object clone()
Return a copy of this object

Overrides:
clone in class MultiscaleFunction
Returns:
DOCUMENT ME!

evaluate

public double[] evaluate(int j1)
Return as an array the sampled values of the function

Specified by:
evaluate in class MultiscaleFunction
Parameters:
j1 - number of iterations
Returns:
DOCUMENT ME!

dimension

public int dimension(int jfin)
Given that the wavelet is written in terms of a scale containing dimension() scaling functions and going jfin scales ahead (iterating jfin times), tells you how many scaling functions you'll need.

Specified by:
dimension in class MultiscaleFunction
Parameters:
jfin - number of iterations
Returns:
DOCUMENT ME!

dimension

public int dimension()
Number of scaling functions at scale where this wavelet belongs.

Specified by:
dimension in class MultiscaleFunction
Returns:
DOCUMENT ME!

position

public int position()
Tells you what is the number of this wavelet. Wavelets are numbered from left to right with the one at the left boundary being noted 0.

Returns:
DOCUMENT ME!