public class LinearSpline extends Spline implements Filter, java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected static int |
filtretype |
| Constructor and Description |
|---|
LinearSpline() |
LinearSpline(double[] v) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Return a copy of this object
|
PiecewiseConstant |
derive()
compute the derivative of the function -
useful for numerical analysis
|
PiecewiseConstant |
derive(double a,
double b)
compute the derivative of the function -
useful for numerical analysis
|
int |
dimension()
Number of knots
|
int |
dimension(int j)
Number of knots after j iterations
|
boolean |
equals(java.lang.Object a)
Check if another object is equal to this
LinearSpline object
|
double[] |
evaluate(int j1)
Return as an array the sampled values
of the function
|
int |
getFilterType()
This method is used to compute
how the number of scaling functions
changes from on scale to the other.
|
double |
getValue(int i)
Get the i th sampled value of the function.
|
double[] |
highpass(double[] donnee)
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[] donnee)
This is the implementation of the lowpass
Filter.
|
double[] |
lowpass(double[] v,
double[] param)
This is the implementation of the lowpass
Filter.
|
int |
previousDimension(int k)
This method return the number of "scaling"
functions at the previous scale given a
number of scaling functions.
|
void |
setValue(int i,
double d)
Set a particular value
|
void |
setValues(double[] v)
Set the sampled values of the function
to the specified array
|
java.lang.String |
toString()
Return a String representation
of the object
|
mass, massprotected static final int filtretype
public int getFilterType()
getFilterType in class Splinepublic java.lang.String toString()
public boolean equals(java.lang.Object a)
public int previousDimension(int k)
previousDimension in interface Filterpublic double[] lowpass(double[] v,
double[] param)
public double[] highpass(double[] v,
double[] param)
public double[] lowpass(double[] donnee)
public double[] highpass(double[] donnee)
public double getValue(int i)
i - position (knot)java.lang.IllegalArgumentException - if i is not
a within 0 and the last knot (dimension()-1)public void setValue(int i,
double d)
i - position (knot)d - valuejava.lang.IllegalArgumentException - if the parameter i is negativepublic void setValues(double[] v)
public PiecewiseConstant derive()
public PiecewiseConstant derive(double a, double b)
a - left boundary of the intervalb - right boundary of the intervalpublic int dimension(int j)
public double[] interpolate(int j)
interpolate in class Splinej - number of iterations