```java.lang.Object
```

`public final class Cascadesextends java.lang.Object`

This class is a standard implementation of the Cascades algorithm.

Method Summary
`static int` ```dimension(int n0, int jfin)```
Starting with n0 scaling functions and going jfin scales ahead (iterating jfin times), tells you how many scaling functions you'll have.
`static int` ```dimension(int n0, int jfin, int filtertype)```
Starting with n0 scaling functions and going jfin scales ahead (iterating jfin times), tells you how many scaling functions you'll have.
`static int` ```dimensionHaar(int n0, int jfin)```
Starting with n0 scaling functions and going jfin scales ahead (iterating jfin times), tells you how many scaling functions you'll have.
`static double[]` `doublesample(double[] data)`
Method used to oversample according to the Haar transform
`static double[]` ```evalScaling(Filter filtre, int n0, int j1, int k)```
DOCUMENT ME!
`static double[]` ```evaluation(Filter filtre, int j1, double[] init)```
DOCUMENT ME!
`static double[]` ```evalWavelet(Filter filtre, int n0, int j1, int k)```
DOCUMENT ME!
`static double[]` ```evalWavelet(Filter filtre, int filtretype, int n0, int j1, int k)```
DOCUMENT ME!
`static double[]` ```evalWaveletHaar(Filter filtre, int n0, int j1, int k)```
DOCUMENT ME!
`static double[]` ```evalWaveletQuadratic(Filter filtre, int n0, int j1, int k)```
DOCUMENT ME!
`static double[]` `oversample(double[] data)`
method used to oversample according to the lazy (Dirac Delta Function) interpolation
`static int` `PowerOf2(int pwrOf2)`
DOCUMENT ME!
`static int` ```previousDimension(int filtretype, int k)```
This method return the number of "scaling" functions at the previous scale given a number of scaling functions.
`static double[]` `quadraticOversample(double[] v)`
Special oversampling for the quadratic spline interpolation
`static double[]` `supersample(double[] data)`
Special oversampling for the linear spline interpolation

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### previousDimension

```public static int previousDimension(int filtretype,
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".

Parameters:
`filtretype` - DOCUMENT ME!
`k` - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
`IllegalScalingException` - DOCUMENT ME!

### evalScaling

```public static double[] evalScaling(Filter filtre,
int n0,
int j1,
int k)```
DOCUMENT ME!

Parameters:
`filtre` - DOCUMENT ME!
`n0` - DOCUMENT ME!
`j1` - DOCUMENT ME!
`k` - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
`java.lang.IllegalArgumentException` - DOCUMENT ME!

### evalWavelet

```public static double[] evalWavelet(Filter filtre,
int filtretype,
int n0,
int j1,
int k)```
DOCUMENT ME!

Parameters:
`filtre` - DOCUMENT ME!
`filtretype` - DOCUMENT ME!
`n0` - DOCUMENT ME!
`j1` - DOCUMENT ME!
`k` - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
`java.lang.IllegalArgumentException` - DOCUMENT ME!

### evalWavelet

```public static double[] evalWavelet(Filter filtre,
int n0,
int j1,
int k)```
DOCUMENT ME!

Parameters:
`filtre` - DOCUMENT ME!
`n0` - DOCUMENT ME!
`j1` - DOCUMENT ME!
`k` - DOCUMENT ME!
Returns:
DOCUMENT ME!

### evalWaveletHaar

```public static double[] evalWaveletHaar(Filter filtre,
int n0,
int j1,
int k)```
DOCUMENT ME!

Parameters:
`filtre` - DOCUMENT ME!
`n0` - DOCUMENT ME!
`j1` - DOCUMENT ME!
`k` - DOCUMENT ME!
Returns:
DOCUMENT ME!

```public static double[] evalWaveletQuadratic(Filter filtre,
int n0,
int j1,
int k)```
DOCUMENT ME!

Parameters:
`filtre` - DOCUMENT ME!
`n0` - DOCUMENT ME!
`j1` - DOCUMENT ME!
`k` - DOCUMENT ME!
Returns:
DOCUMENT ME!

### PowerOf2

`public static int PowerOf2(int pwrOf2)`
DOCUMENT ME!

Parameters:
`pwrOf2` - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
`java.lang.IllegalArgumentException` - DOCUMENT ME!

### oversample

`public static double[] oversample(double[] data)`
method used to oversample according to the lazy (Dirac Delta Function) interpolation

Parameters:
`data` - DOCUMENT ME!
Returns:
DOCUMENT ME!

### doublesample

`public static double[] doublesample(double[] data)`
Method used to oversample according to the Haar transform

Parameters:
`data` - DOCUMENT ME!
Returns:
DOCUMENT ME!

### supersample

`public static double[] supersample(double[] data)`
Special oversampling for the linear spline interpolation

Parameters:
`data` - DOCUMENT ME!
Returns:
DOCUMENT ME!

`public static double[] quadraticOversample(double[] v)`
Special oversampling for the quadratic spline interpolation

Parameters:
`v` - DOCUMENT ME!
Returns:
DOCUMENT ME!

### dimension

```public static int dimension(int n0,
int jfin,
int filtertype)```
Starting with n0 scaling functions and going jfin scales ahead (iterating jfin times), tells you how many scaling functions you'll have. (Dyadic multiresolutions of type filtretype.)

Parameters:
`n0` - number of scaling functions initially
`jfin` - number of iterations
`filtertype` - filter type
Returns:
DOCUMENT ME!

### dimension

```public static int dimension(int n0,
int jfin)```
Starting with n0 scaling functions and going jfin scales ahead (iterating jfin times), tells you how many scaling functions you'll have. (Linear spline and dyadic multiresolution of type 1.)

Parameters:
`n0` - number of scaling functions initially
`jfin` - number of iterations
Returns:
DOCUMENT ME!

### dimensionHaar

```public static int dimensionHaar(int n0,
int jfin)```
Starting with n0 scaling functions and going jfin scales ahead (iterating jfin times), tells you how many scaling functions you'll have. (Haar and dyadic multiresolution of type 0.)

Parameters:
`n0` - number of scaling functions initially
`jfin` - number of iterations
Returns:
DOCUMENT ME!

### evaluation

```public static double[] evaluation(Filter filtre,
int j1,
double[] init)```
DOCUMENT ME!

Parameters:
`filtre` - DOCUMENT ME!
`j1` - DOCUMENT ME!
`init` - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
`java.lang.IllegalArgumentException` - DOCUMENT ME!