jsci.maths.wavelet.splines
Class PiecewiseConstant
- java.lang.Object
-
- jsci.maths.wavelet.MultiscaleFunction
-
- jsci.maths.wavelet.splines.Spline
-
- jsci.maths.wavelet.splines.PiecewiseConstant
-
-
Constructor Summary
Constructors Constructor and Description PiecewiseConstant()PiecewiseConstant(double[] v)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Objectclone()Return a copy of this objectSumOfDiracsderive()compute the derivative of the function - useful for numerical analysisSumOfDiracsderive(double a, double b)compute the derivative of the function - useful for numerical analysisintdimension()Number of knotsintdimension(int j)Number of knots after j iterationsbooleanequals(java.lang.Object a)Check if another object is equal to this PiecewiseConstant objectdouble[]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.doublegetValue(int i)Get the i th sampled value of the function.double[]highpass(double[] gete)This is the implementation of the highpass Filter.double[]highpass(double[] v, double[] param)This is the implementation of the highpass Filter.double[]interpolate(int j)Return as an array the interpolated values of the function.double[]lowpass(double[] gete)This is the implementation of the lowpass Filter.double[]lowpass(double[] v, double[] param)This is the implementation of the lowpass Filter.doublemass(double a, double b)Compute the mass (integral)intpreviousDimension(int k)This method return the number of "scaling" functions at the previous scale given a number of scaling functions.voidsetValue(int i, double d)Set a particular valuevoidsetValues(double[] v)Set the sampled values of the function to the specified arrayjava.lang.StringtoString()Return a String representation of the object-
Methods inherited from class jsci.maths.wavelet.MultiscaleFunction
mass, mass
-
-
-
-
Constructor Detail
-
PiecewiseConstant
public PiecewiseConstant(double[] v)
-
PiecewiseConstant
public PiecewiseConstant()
-
-
Method Detail
-
toString
public java.lang.String toString()
Return a String representation of the object
-
equals
public boolean equals(java.lang.Object a)
Check if another object is equal to this PiecewiseConstant object
-
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 classSpline
-
previousDimension
public int previousDimension(int k)
This method return the number of "scaling" functions at the previous scale given a number of scaling functions. The answer is always smaller than the provided value (about half since this is a dyadic implementation). This relates to the same idea as the "Filter type". It is used by the interface "Filter".- Specified by:
previousDimensionin interfaceFilter
-
lowpass
public double[] lowpass(double[] v, double[] param)This is the implementation of the lowpass Filter. It is used by the interface "Filter". Lowpass filters are normalized so that they preserve constants away from the boundaries.
-
highpass
public double[] highpass(double[] v, double[] param)This is the implementation of the highpass Filter. It is used by the interface "Filter". This class doesn't have a highpass Filter so that this method is only provided to be compatible with the interface.
-
lowpass
public double[] lowpass(double[] gete)
This is the implementation of the lowpass Filter. It is used by the interface "Filter". Lowpass filters are normalized so that they preserve constants away from the boundaries.
-
highpass
public double[] highpass(double[] gete)
This is the implementation of the highpass Filter. It is used by the interface "Filter". This class doesn't have a highpass Filter so that this method is only provided to be compatible with the interface.
-
getValue
public double getValue(int i)
Get the i th sampled value of the function.- Parameters:
i- position (knot)- Throws:
java.lang.IllegalArgumentException- if i is not a within 0 and the last knot (dimension()-1)
-
setValues
public void setValues(double[] v)
Set the sampled values of the function to the specified array
-
mass
public double mass(double a, double b)Compute the mass (integral)- Parameters:
a- left boundary of the intervalb- right boundary of the interval
-
setValue
public void setValue(int i, double d)Set a particular value- Parameters:
i- position (knot)d- value- Throws:
java.lang.IllegalArgumentException- if the parameter i is negative
-
derive
public SumOfDiracs derive()
compute the derivative of the function - useful for numerical analysis
-
derive
public SumOfDiracs derive(double a, double b)
compute the derivative of the function - useful for numerical analysis- Parameters:
a- left boundary of the intervalb- right boundary of the interval
-
dimension
public int dimension(int j)
Number of knots after j iterations
-
interpolate
public double[] interpolate(int j)
Return as an array the interpolated values of the function. Will return the same values as the evaluate method because the Filter is interpolatory.- Specified by:
interpolatein classSpline- Parameters:
j- number of iterations
-
-
DMelt 3.0 © DataMelt by jWork.ORG