Class MyWavelet
- java.lang.Object
-
- de.gsi.math.spectra.wavelet.Lift
-
- de.gsi.math.spectra.wavelet.MyWavelet
-
public class MyWavelet extends Lift
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.gsi.math.spectra.wavelet.Lift
Lift.Direction
-
-
Constructor Summary
Constructors Constructor Description MyWavelet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidforwardTrans(double[] vec)Simple wavelet Lifting Scheme forward transformvoidinverseTrans(double[] vec)Default two step Lifting Scheme inverse wavelet transformprotected voidnormalize(double[] S, int N, Lift.Direction direction)protected voidpredict(double[] S, int N, Lift.Direction direction)Predict step, to be defined by the subclassprotected voidupdate(double[] S, int N, Lift.Direction direction)Update step, to be defined by the subclassprotected voidupdateOne(double[] S, int N, Lift.Direction direction)
-
-
-
Method Detail
-
forwardTrans
public void forwardTrans(double[] vec)
Description copied from class:LiftSimple wavelet Lifting Scheme forward transform
forwardTrans is passed an array of doubles. The array size must be a power of two. Lifting Scheme wavelet transforms are calculated in-place and the result is returned in the argument array.
The result of forwardTrans is a set of wavelet coefficients ordered by increasing frequency and an approximate average of the input data set in vec[0]. The coefficient bands follow this element in powers of two (e.g., 1, 2, 4, 8...).
- Overrides:
forwardTransin classLift- Parameters:
vec- input vector
-
inverseTrans
public void inverseTrans(double[] vec)
Default two step Lifting Scheme inverse wavelet transform
inverseTrans is passed the result of an ordered wavelet transform, consisting of an average and a set of wavelet coefficients. The inverse transform is calculated in-place and the result is returned in the argument array.
- Overrides:
inverseTransin classLift- Parameters:
vec- input vector
-
normalize
protected void normalize(double[] S, int N, Lift.Direction direction)
-
predict
protected void predict(double[] S, int N, Lift.Direction direction)Description copied from class:LiftPredict step, to be defined by the subclass
-
update
protected void update(double[] S, int N, Lift.Direction direction)Description copied from class:LiftUpdate step, to be defined by the subclass
-
updateOne
protected void updateOne(double[] S, int N, Lift.Direction direction)
-
-