jsci.maths.wavelet
Class BasisFunctionLibrary
- java.lang.Object
-
- jsci.maths.wavelet.BasisFunctionLibrary
-
- All Implemented Interfaces:
- java.lang.Cloneable
- Direct Known Subclasses:
- MatchingPursuit
public class BasisFunctionLibrary extends java.lang.Object implements java.lang.CloneableThis 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.
-
-
Constructor Summary
Constructors Constructor and Description BasisFunctionLibrary(DiscreteFunction f)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidadd(Multiresolution mr)Attempt to add every possible functions belonging to a multiresolution.voidadd(MultiscaleFunction f)Add the MultiscaleFunction to both the primary and dual internal arrays.voidadd(MultiscaleFunction[] f)Add the array of MultiscaleFunction to both the primary and dual internal arrays.voidadd(MultiscaleFunction fprimary, MultiscaleFunction fdual)Add a clone of the given MultiscaleFunctions to the internal arrays of MultiscaleFunctions.double[]checkBiorthogonality()Checks whether whether or not the biorthogonality is satisfied If so, the return array should roughly be filled with ones.java.lang.Objectclone()DiscreteFunctiongetData()get a copy of the data object (no direct access)DiscreteFunctiongetDual(int k)doublegetMorseThreshold()DiscreteFunctiongetPrimary(int k)doublegetResidue(int k)double[]getResidues()intgetSize()We will now attempt to match each MultiscaleFunction to the length of the data.doublegetWeigth(int k)double[]getWeigths()voidincludeFourier()voidincludeMasslessFourier()doublenorm()voidsetData(DiscreteFunction f)Allows the user to change the DiscreteFunction (see constructor).voidsetMorseThreshold(double p)
-
-
-
Constructor Detail
-
BasisFunctionLibrary
public BasisFunctionLibrary(DiscreteFunction f)
-
-
Method Detail
-
clone
public java.lang.Object clone()
- Overrides:
clonein classjava.lang.Object
-
setMorseThreshold
public void setMorseThreshold(double p)
-
getMorseThreshold
public double getMorseThreshold()
-
includeFourier
public void includeFourier()
-
includeMasslessFourier
public void includeMasslessFourier()
-
getPrimary
public DiscreteFunction getPrimary(int k)
-
getDual
public DiscreteFunction getDual(int k)
-
setData
public void setData(DiscreteFunction f)
Allows the user to change the DiscreteFunction (see constructor).- Throws:
java.lang.IllegalArgumentException- if you try to change the number of data values (dimension of the DiscreteFunction)
-
getData
public DiscreteFunction getData()
get a copy of the data object (no direct access)
-
add
public void add(MultiscaleFunction fprimary, MultiscaleFunction fdual)
Add a clone of the given MultiscaleFunctions to the internal arrays of MultiscaleFunctions.
-
add
public void add(MultiscaleFunction f)
Add the MultiscaleFunction to both the primary and dual internal arrays.
-
add
public void add(MultiscaleFunction[] f)
Add the array of MultiscaleFunction to both the primary and dual internal arrays.
-
add
public void add(Multiresolution mr)
Attempt to add every possible functions belonging to a multiresolution. Entirely automatic! Limited to dyadic multiresolutions.
-
getResidues
public double[] getResidues()
-
getResidue
public double getResidue(int k)
-
getWeigths
public double[] getWeigths()
-
getWeigth
public double getWeigth(int k)
-
norm
public double norm()
-
getSize
public int getSize()
We will now attempt to match each MultiscaleFunction to the length of the data.
-
checkBiorthogonality
public double[] checkBiorthogonality()
Checks whether whether or not the biorthogonality is satisfied If so, the return array should roughly be filled with ones.
-
-
DMelt 3.0 © DataMelt by jWork.ORG