jsci.maths.wavelet
Class DiscreteFunction
- java.lang.Object
-
- jsci.maths.wavelet.MultiscaleFunction
-
- jsci.maths.wavelet.DiscreteFunction
-
- All Implemented Interfaces:
- java.lang.Cloneable
- Direct Known Subclasses:
- SparseDiscreteFunction
public class DiscreteFunction extends MultiscaleFunction implements java.lang.Cloneable
This class is used to be able to mix the wavelet and other type of functions such as given signals.
-
-
Constructor Summary
Constructors Constructor and Description DiscreteFunction(double[] v)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Objectclone()Return a copy of this objectintdimension()Tells you how many samples you'll get from this functionintdimension(int jfin)Tells you how many samples you'll get from this function (will not depend on the parameter)booleanequals(java.lang.Object a)Check if another object is equal to this DiscreteFunction objectdouble[]evaluate()Return as an array the sampled values of the functiondouble[]evaluate(int j)Return as an array the sampled values of the functionintgetFilterType()This method is used to compute how the number of scaling functions changes from on scale to the other.doublemass(double a, double b, int jfin)Compute the mass (integral)doublenorm()Compute the L2 norm of the signaldoublenorm(int j)Compute the L2 norm of the functionvoidnormalize()Makes the L2 norm of the internal array equal to 1.voidsetData(double[] v)java.lang.StringtoString()Return a String representation of the object-
Methods inherited from class jsci.maths.wavelet.MultiscaleFunction
mass
-
-
-
-
Method Detail
-
setData
public void setData(double[] v)
-
toString
public java.lang.String toString()
Return a String representation of the object- Specified by:
toStringin classMultiscaleFunction
-
normalize
public final void normalize()
Makes the L2 norm of the internal array equal to 1.
-
evaluate
public final double[] evaluate()
Return as an array the sampled values of the function
-
equals
public final boolean equals(java.lang.Object a)
Check if another object is equal to this DiscreteFunction object- Specified by:
equalsin classMultiscaleFunction
-
evaluate
public double[] evaluate(int j)
Return as an array the sampled values of the function- Specified by:
evaluatein classMultiscaleFunction- Parameters:
j- number of iterations (doesn't do anything)
-
mass
public double mass(double a, double b, int jfin)Compute the mass (integral)- Overrides:
massin classMultiscaleFunction- Parameters:
a- left boundary of the intervalb- right boundary of the intervaljfin- number of iterations to consider (precision)
-
norm
public final double norm()
Compute the L2 norm of the signal
-
norm
public double norm(int j)
Compute the L2 norm of the function- Parameters:
j- number of iterations
-
clone
public java.lang.Object clone()
Return a copy of this object- Overrides:
clonein classMultiscaleFunction
-
dimension
public int dimension(int jfin)
Tells you how many samples you'll get from this function (will not depend on the parameter)- Specified by:
dimensionin classMultiscaleFunction
-
dimension
public final int dimension()
Tells you how many samples you'll get from this function- Specified by:
dimensionin classMultiscaleFunction
-
getFilterType
public int getFilterType()
This method is used to compute how the number of scaling functions changes from on scale to the other. Basically, if you have k scaling function and a Filter of type t, you'll have 2*k+t scaling functions at the next scale (dyadic case). Notice that this method assumes that one is working with the dyadic grid while the method "previousDimension" define in the interface "Filter" doesn't.- Specified by:
getFilterTypein classMultiscaleFunction
-
-
DMelt 3.0 © DataMelt by jWork.ORG