All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JSci.maths.wavelet.BasisFunctionLibrary

java.lang.Object
   |
   +----JSci.maths.wavelet.BasisFunctionLibrary

public class BasisFunctionLibrary
extends Object
implements Cloneable
This class is meant to be used for Fast Wavelet Transform, Matching Pursuit and related signal processing algorithm. The basic idea is to automatically build and compress a library of "basis functions". Using Morse Coding this class delivers very fast code without sacrificing anything. The only fee is the one you pay to build the object, and it is a one time fee. Note : this class should be rewritten to use the java.util collections starting with jdk1.2. This class is not meant to be used directly but rather, you should build on it. It supports only 1D data.


Variable Index

 o DFunction
 o Fdual
 o Fprimary

Constructor Index

 o BasisFunctionLibrary()
 o BasisFunctionLibrary(DiscreteFunction)

Method Index

 o add(double[][], double[][])
 o add(Multiresolution)
Attempt to add every possible functions belonging to a multiresolution.
 o add(MultiscaleFunction)
Add the MultiscaleFunction to both the primary and dual internal arrays.
 o add(MultiscaleFunction, MultiscaleFunction)
Add a clone of the given MultiscaleFunctions to the internal arrays of MultiscaleFunctions.
 o add(MultiscaleFunction[])
Add the array of MultiscaleFunction to both the primary and dual internal arrays.
 o checkBiorthogonality()
Checks whether whether or not the biorthogonality is satisfied If so, the return array should roughly be filled with ones.
 o clone()
 o cloneArrayDiscreteFunction(MultiscaleFunction[])
Clone an arry of DiscreteFunction.
 o getData()
get a copy of the data object (no direct access)
 o getDual(int)
 o getMorseThreshold()
 o getPrimary(int)
 o getResidue(int)
 o getResidues()
 o getSize()
We will now attempt to match each MultiscaleFunction to the length of the data.
 o getWeigth(int)
 o getWeigths()
 o includeFourier()
 o includeMasslessFourier()
 o norm()
 o norm(double, double)
 o setData(DiscreteFunction)
Allows the user to change the DiscreteFunction (see constructor).
 o setMorseThreshold(double)

Variables

 o Fprimary
 protected DiscreteFunction Fprimary[]
 o Fdual
 protected DiscreteFunction Fdual[]
 o DFunction
 protected DiscreteFunction DFunction

Constructors

 o BasisFunctionLibrary
 protected BasisFunctionLibrary()
 o BasisFunctionLibrary
 public BasisFunctionLibrary(DiscreteFunction f)

Methods

 o clone
 public Object clone()
Overrides:
clone in class Object
 o setMorseThreshold
 public void setMorseThreshold(double p)
 o getMorseThreshold
 public double getMorseThreshold()
 o includeFourier
 public void includeFourier()
 o includeMasslessFourier
 public void includeMasslessFourier()
 o getPrimary
 public DiscreteFunction getPrimary(int k)
 o getDual
 public DiscreteFunction getDual(int k)
 o setData
 public void setData(DiscreteFunction f)
Allows the user to change the DiscreteFunction (see constructor).

Throws: IllegalArgumentException
if you try to change the number of data values (dimension of the DiscreteFunction)
 o getData
 public DiscreteFunction getData()
get a copy of the data object (no direct access)

 o cloneArrayDiscreteFunction
 protected static DiscreteFunction[] cloneArrayDiscreteFunction(MultiscaleFunction a[])
Clone an arry of DiscreteFunction. This method is needed to handle eventual null object.

 o add
 public void add(MultiscaleFunction fprimary,
                 MultiscaleFunction fdual)
Add a clone of the given MultiscaleFunctions to the internal arrays of MultiscaleFunctions.

 o add
 public void add(MultiscaleFunction f)
Add the MultiscaleFunction to both the primary and dual internal arrays.

 o add
 public void add(MultiscaleFunction f[])
Add the array of MultiscaleFunction to both the primary and dual internal arrays.

 o add
 public void add(Multiresolution mr)
Attempt to add every possible functions belonging to a multiresolution. Entirely automatic! Limited to dyadic multiresolutions.

 o getResidues
 public double[] getResidues()
 o getResidue
 public double getResidue(int k)
 o getWeigths
 public double[] getWeigths()
 o getWeigth
 public double getWeigth(int k)
 o norm
 public double norm()
 o getSize
 public int getSize()
We will now attempt to match each MultiscaleFunction to the length of the data.

 o norm
 protected static double norm(double a,
                              double b)
 o checkBiorthogonality
 public double[] checkBiorthogonality()
Checks whether whether or not the biorthogonality is satisfied If so, the return array should roughly be filled with ones.

 o add
 protected static double[][] add(double v[][],
                                 double w[][])

All Packages  Class Hierarchy  This Package  Previous  Next  Index