JSci.maths.wavelet.splines
Class Spline

java.lang.Object
  extended byJSci.maths.wavelet.MultiscaleFunction
      extended byJSci.maths.wavelet.splines.Spline
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
LinearSpline, PiecewiseConstant, QuadraticSpline, SumOfDiracs

public abstract class Spline
extends MultiscaleFunction
implements java.lang.Cloneable

This class is meant as an abstract encapsulation for spline objects.


Constructor Summary
Spline()
           
 
Method Summary
 java.lang.Object clone()
          Return a copy of the object
abstract  int dimension()
           
abstract  int dimension(int j)
           
abstract  boolean equals(java.lang.Object parm1)
          Check if another object is equal to this MultiscaleFunction object
abstract  double[] evaluate(int parm1)
          Return as an array the sampled values of the function
abstract  int getFilterType()
          This method is used to compute how the number of scaling functions changes from on scale to the other.
abstract  double[] interpolate(int j)
          The interpolate method should be return the actual value of the spline on knots.
abstract  java.lang.String toString()
          Return a string representing the object
 
Methods inherited from class JSci.maths.wavelet.MultiscaleFunction
mass, mass
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Spline

public Spline()
Method Detail

dimension

public abstract int dimension(int j)
Specified by:
dimension in class MultiscaleFunction

dimension

public abstract int dimension()
Specified by:
dimension in class MultiscaleFunction

clone

public java.lang.Object clone()
Description copied from class: MultiscaleFunction
Return a copy of the object

Overrides:
clone in class MultiscaleFunction

toString

public abstract java.lang.String toString()
Description copied from class: MultiscaleFunction
Return a string representing the object

Specified by:
toString in class MultiscaleFunction

evaluate

public abstract double[] evaluate(int parm1)
Description copied from class: MultiscaleFunction
Return as an array the sampled values of the function

Specified by:
evaluate in class MultiscaleFunction

getFilterType

public abstract int getFilterType()
Description copied from class: MultiscaleFunction
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:
getFilterType in class MultiscaleFunction

equals

public abstract boolean equals(java.lang.Object parm1)
Description copied from class: MultiscaleFunction
Check if another object is equal to this MultiscaleFunction object

Specified by:
equals in class MultiscaleFunction

interpolate

public abstract double[] interpolate(int j)
The interpolate method should be return the actual value of the spline on knots. This value would differ in general from the value generated by the Cascades algorithm and got from the method evaluate. This doesn't apply to splines of order -1,0 and 1.