JSci.maths.wavelet
Class FWTCoef

java.lang.Object
  extended byJSci.maths.wavelet.FWTCoef
All Implemented Interfaces:
java.lang.Cloneable, NumericalConstants

public final class FWTCoef
extends java.lang.Object
implements NumericalConstants, java.lang.Cloneable

This class is used to encapsulate wavelet coefficients.


Field Summary
protected  double[][] coefs
           
(package private) static double normalisation
           
 
Fields inherited from interface JSci.maths.NumericalConstants
GAMMA, GOLDEN_RATIO, LOG10, SQRT2, SQRT2PI, TWO_PI
 
Constructor Summary
FWTCoef()
           
FWTCoef(double[][] v)
           
 
Method Summary
 java.lang.Object clone()
          Return a copy of this object
 void compress(double p)
          Compresses by zero-ing any value below a given percentile cut-off.
static double[] compress(double[] v, double p)
          Compresses by zero-ing any value below a given percentile cut-off.
 void compress(double p, int k)
          Compresses by zero-ing any value below a given percentile cut-off.
 void compressHard(double p)
          Compresses by zero-ing any value below a given cut-off.
static double[] compressHard(double[] v, double seuil)
          Compresses by zero-ing any value below a given cut-off.
 void compressHard(double p, int k)
          Compresses by zero-ing any value below a given cut-off.
 void denoise(double p)
          Denoises by zero-ing any value above a given percentile cut-off.
static double[] denoise(double[] v, double p)
          Denoises by zero-ing any value above a given percentile cut-off.
 void denoise(double p, int k)
          Denoises by zero-ing any value above a given percentile cut-off.
 void denoiseHard(double p)
          Denoises by zero-ing any value above a given cut-off.
static double[] denoiseHard(double[] v, double seuil)
          Denoises by zero-ing any value above a given cut-off.
 void denoiseHard(double p, int k)
          Denoises by zero-ing any value above a given cut-off.
 int dimension(int i)
           
 double energyRatio(int i)
           
 double entropy()
           
 double[][] getCoefs()
           
 int getJ()
           
 double icf()
          Compute the Shannon entropy.
 double mass(int i)
           
 double[] norm()
          Compute the L2 norm of the coefficients
 double norm(int i)
          Compute the L2 norm of the coefficients at "scale" i.
 Signal rebuildSignal(Filter filtreprimaire)
           
 Signal rebuildSignal(Filter filtreprimaire, double[] param)
           
 void setCoefs(double[][] v)
           
 void setCoefs(double[] v, int i)
           
 double sumEnergies()
           
 double sumSquares(int i)
          Compute the sum of the squares of the coefficients
 double sumVariance()
           
 void synthesize(Filter filtreprimaire)
           
 void synthesize(Filter filtreprimaire, double[] param)
           
 void synthesize(Filter filtreprimaire, double[] param, int jmax)
           
 void synthesize(Filter filtreprimaire, int jmax)
           
 void synthesizeAll(Filter filtreprimaire)
           
 void synthesizeAll(Filter filtreprimaire, double[] param)
           
 double variance(int i)
           
 double varianceICF()
           
 double varianceRatio(int i)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

coefs

protected double[][] coefs

normalisation

static final double normalisation
See Also:
Constant Field Values
Constructor Detail

FWTCoef

public FWTCoef()

FWTCoef

public FWTCoef(double[][] v)
Method Detail

clone

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


getJ

public int getJ()

dimension

public int dimension(int i)

getCoefs

public double[][] getCoefs()

norm

public double[] norm()
Compute the L2 norm of the coefficients


norm

public double norm(int i)
Compute the L2 norm of the coefficients at "scale" i. Wavelet coefficients are into the "scale" 1 to ... and the scale 0 is the coarsest scale containing scaling functions coefficients


sumSquares

public double sumSquares(int i)
Compute the sum of the squares of the coefficients


mass

public double mass(int i)

variance

public double variance(int i)

sumEnergies

public double sumEnergies()

entropy

public double entropy()

sumVariance

public double sumVariance()

energyRatio

public double energyRatio(int i)

varianceRatio

public double varianceRatio(int i)

icf

public double icf()
Compute the Shannon entropy.


varianceICF

public double varianceICF()

setCoefs

public void setCoefs(double[][] v)

setCoefs

public void setCoefs(double[] v,
                     int i)

synthesize

public void synthesize(Filter filtreprimaire,
                       double[] param)

synthesize

public void synthesize(Filter filtreprimaire,
                       double[] param,
                       int jmax)

synthesizeAll

public void synthesizeAll(Filter filtreprimaire,
                          double[] param)

synthesize

public void synthesize(Filter filtreprimaire)

synthesize

public void synthesize(Filter filtreprimaire,
                       int jmax)

synthesizeAll

public void synthesizeAll(Filter filtreprimaire)

rebuildSignal

public Signal rebuildSignal(Filter filtreprimaire)

rebuildSignal

public Signal rebuildSignal(Filter filtreprimaire,
                            double[] param)

denoise

public void denoise(double p)
Denoises by zero-ing any value above a given percentile cut-off.

Parameters:
p - percentile cut-off, must be between 0 and 1.

denoise

public void denoise(double p,
                    int k)
Denoises by zero-ing any value above a given percentile cut-off.

Parameters:
p - percentile cut-off, must be between 0 and 1.
k - the index of the coefficient array to denoise.

denoise

public static double[] denoise(double[] v,
                               double p)
Denoises by zero-ing any value above a given percentile cut-off.

Parameters:
v - an array to denoise.
p - percentile cut-off, must be between 0 and 1.

compress

public void compress(double p)
Compresses by zero-ing any value below a given percentile cut-off.

Parameters:
p - percentile cut-off, must be between 0 and 1.

compress

public void compress(double p,
                     int k)
Compresses by zero-ing any value below a given percentile cut-off.

Parameters:
p - percentile cut-off, must be between 0 and 1.
k - the index of the coefficient array to compress.

compress

public static double[] compress(double[] v,
                                double p)
Compresses by zero-ing any value below a given percentile cut-off.

Parameters:
v - an array to compress.
p - percentile cut-off, must be between 0 and 1.

denoiseHard

public void denoiseHard(double p)
Denoises by zero-ing any value above a given cut-off.

Parameters:
p - cut-off.

denoiseHard

public void denoiseHard(double p,
                        int k)
Denoises by zero-ing any value above a given cut-off.

Parameters:
p - cut-off.
k - the index of the coefficient array to denoise.

denoiseHard

public static double[] denoiseHard(double[] v,
                                   double seuil)
Denoises by zero-ing any value above a given cut-off.

Parameters:
v - an array to denoise.
seuil - cut-off/threshold.

compressHard

public void compressHard(double p)
Compresses by zero-ing any value below a given cut-off.

Parameters:
p - cut-off.

compressHard

public void compressHard(double p,
                         int k)
Compresses by zero-ing any value below a given cut-off.

Parameters:
p - cut-off.
k - the index of the coefficient array to compress.

compressHard

public static double[] compressHard(double[] v,
                                    double seuil)
Compresses by zero-ing any value below a given cut-off.

Parameters:
v - an array to compress.
seuil - cut-off/threshold.