All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JSci.maths.wavelet.splines.PiecewiseConstant

java.lang.Object
   |
   +----JSci.maths.wavelet.MultiscaleFunction
           |
           +----JSci.maths.wavelet.splines.Spline
                   |
                   +----JSci.maths.wavelet.splines.PiecewiseConstant

public class PiecewiseConstant
extends Spline
implements Filter, Cloneable
This class is used to generate piecewise constant splines to be used as wavelets or related functions. It can also be used for basic interpolation.


Variable Index

 o filtretype

Constructor Index

 o PiecewiseConstant()
 o PiecewiseConstant(double[])

Method Index

 o clone()
Return a copy of this object
 o derive()
compute the derivative of the function - useful for numerical analysis
 o derive(double, double)
compute the derivative of the function - useful for numerical analysis
 o dimension()
Number of knots
 o dimension(int)
Number of knots after j iterations
 o equals(Object)
Check if another object is equal to this PiecewiseConstant object
 o evaluate(int)
Return as an array the sampled values of the function
 o getFilterType()
This method is used to compute how the number of scaling functions changes from on scale to the other.
 o getValue(int)
Get the i th sampled value of the function.
 o highpass(double[])
This is the implementation of the highpass Filter.
 o highpass(double[], double[])
This is the implementation of the highpass Filter.
 o interpolate(int)
Return as an array the interpolated values of the function.
 o lowpass(double[])
This is the implementation of the lowpass Filter.
 o lowpass(double[], double[])
This is the implementation of the lowpass Filter.
 o mass(double, double)
Compute the mass (integral)
 o previousDimension(int)
This method return the number of "scaling" functions at the previous scale given a number of scaling functions.
 o setValue(int, double)
Set a particular value
 o setValues(double[])
Set the sampled values of the function to the specified array
 o toString()
Return a String representation of the object

Variables

 o filtretype
 protected static final int filtretype

Constructors

 o PiecewiseConstant
 public PiecewiseConstant(double v[])
 o PiecewiseConstant
 public PiecewiseConstant()

Methods

 o toString
 public String toString()
Return a String representation of the object

Overrides:
toString in class Spline
 o equals
 public boolean equals(Object a)
Check if another object is equal to this PiecewiseConstant object

Overrides:
equals in class Spline
 o 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.

Overrides:
getFilterType in class Spline
 o 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".

 o 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.

 o 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.

 o 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.

 o 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.

 o clone
 public Object clone()
Return a copy of this object

Overrides:
clone in class Spline
 o getValue
 public double getValue(int i)
Get the i th sampled value of the function.

Parameters:
i - position (knot)
Throws: IllegalArgumentException
if i is not a within 0 and the last knot (dimension()-1)
 o setValues
 public void setValues(double v[])
Set the sampled values of the function to the specified array

 o mass
 public double mass(double a,
                    double b)
Compute the mass (integral)

Parameters:
a - left boundary of the interval
b - right boundary of the interval
 o setValue
 public void setValue(int i,
                      double d)
Set a particular value

Parameters:
i - position (knot)
d - value
Throws: IllegalArgumentException
if the parameter i is negative
 o derive
 public SumOfDiracs derive()
compute the derivative of the function - useful for numerical analysis

 o derive
 public SumOfDiracs derive(double a,
                           double b)
compute the derivative of the function - useful for numerical analysis

Parameters:
a - left boundary of the interval
b - right boundary of the interval
 o dimension
 public int dimension()
Number of knots

Overrides:
dimension in class Spline
 o dimension
 public int dimension(int j)
Number of knots after j iterations

Parameters:
j - number of iterations
Overrides:
dimension in class Spline
 o 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.

Parameters:
j - number of iterations
Overrides:
interpolate in class Spline
 o evaluate
 public double[] evaluate(int jfin)
Return as an array the sampled values of the function

Parameters:
j - number of iterations
Overrides:
evaluate in class Spline

All Packages  Class Hierarchy  This Package  Previous  Next  Index