jsci.maths.wavelet
Class FWTCoef
- java.lang.Object
-
- jsci.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
-
Fields inherited from interface jsci.maths.NumericalConstants
GAMMA, GOLDEN_RATIO, LOG10, SQRT2, SQRT2PI, TWO_PI
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Objectclone()Return a copy of this objectvoidcompress(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.voidcompress(double p, int k)Compresses by zero-ing any value below a given percentile cut-off.voidcompressHard(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.voidcompressHard(double p, int k)Compresses by zero-ing any value below a given cut-off.voiddenoise(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.voiddenoise(double p, int k)Denoises by zero-ing any value above a given percentile cut-off.voiddenoiseHard(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.voiddenoiseHard(double p, int k)Denoises by zero-ing any value above a given cut-off.intdimension(int i)doubleenergyRatio(int i)doubleentropy()double[][]getCoefs()intgetJ()doubleicf()Compute the Shannon entropy.doublemass(int i)double[]norm()Compute the L2 norm of the coefficientsdoublenorm(int i)Compute the L2 norm of the coefficients at "scale" i.SignalrebuildSignal(Filter filtreprimaire)SignalrebuildSignal(Filter filtreprimaire, double[] param)voidsetCoefs(double[][] v)voidsetCoefs(double[] v, int i)doublesumEnergies()doublesumSquares(int i)Compute the sum of the squares of the coefficientsdoublesumVariance()voidsynthesize(Filter filtreprimaire)voidsynthesize(Filter filtreprimaire, double[] param)voidsynthesize(Filter filtreprimaire, double[] param, int jmax)voidsynthesize(Filter filtreprimaire, int jmax)voidsynthesizeAll(Filter filtreprimaire)voidsynthesizeAll(Filter filtreprimaire, double[] param)doublevariance(int i)doublevarianceICF()doublevarianceRatio(int i)
-
-
-
Method Detail
-
clone
public java.lang.Object clone()
Return a copy of this object- Overrides:
clonein classjava.lang.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)
-
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.
-
-
DMelt 3.0 © DataMelt by jWork.ORG