JSci.maths.wavelet
Class DiscreteHilbertSpace

java.lang.Object
  extended by JSci.maths.wavelet.DiscreteHilbertSpace

public final class DiscreteHilbertSpace
extends java.lang.Object

This class provides support for basic operations on MultiscaleFunction. Whenever it isn't specified we are working over the interval [0,1] Be careful when using integrate... Indeed, integrate(f,g) is not, in general, the same thing as integrate(g,f).


Field Summary
static int maxiter
          Maximum number of allowed iterations in order to match objects.
 
Method Summary
static double[] add(DiscreteFunction f, double a, DiscreteFunction g)
          Calculates f+a*g.
static AbstractDoubleVector add(DiscreteFunction f, double a, SparseDiscreteFunction g)
          Calculates f+a*g.
static double[] add(MultiscaleFunction f, double a, MultiscaleFunction g, int j1)
          Calculates f+a*g.
static AbstractDoubleVector add(MultiscaleFunction g, double a, SparseDiscreteFunction f, int j1)
          Calculates f+a*g.
static AbstractDoubleVector add(SparseDiscreteFunction f, double a, DiscreteFunction g)
          Calculates f+a*g.
static AbstractDoubleVector add(SparseDiscreteFunction f, double a, MultiscaleFunction g, int j1)
          Calculates f+a*g.
static AbstractDoubleVector add(SparseDiscreteFunction f, double a, SparseDiscreteFunction g)
          Calculates f+a*g.
static int[] getScalingCoefficients(MultiscaleFunction f, MultiscaleFunction g, int j1)
          While this method is public (for transparency reasons) it should not be called by other classes unless absolutely necessary.
static double integrate(Cosine f, DiscreteFunction g)
           
static double integrate(Cosine f, SparseDiscreteFunction g)
           
static double integrate(DiscreteFunction f, Cosine g)
           
static double integrate(DiscreteFunction f, DiscreteFunction g)
           
static double integrate(DiscreteFunction f, Sine g)
           
static double integrate(DiscreteFunction f, SparseDiscreteFunction g)
           
static double integrate(MultiscaleFunction f, MultiscaleFunction g, int j1)
           
static double integrate(MultiscaleFunction f, MultiscaleFunction g, int j1, double a, double b)
           
static double integrate(PiecewiseConstant f, MultiscaleFunction g, int j1)
           
static double integrate(PiecewiseConstant f, MultiscaleFunction g, int j1, double a, double b)
           
static double integrate(Sine f, DiscreteFunction g)
           
static double integrate(Sine f, SparseDiscreteFunction g)
           
static double integrate(SparseDiscreteFunction f, Cosine g)
           
static double integrate(SparseDiscreteFunction f, DiscreteFunction g)
           
static double integrate(SparseDiscreteFunction f, Sine g)
           
static double integrate(SparseDiscreteFunction f, SparseDiscreteFunction g)
          This method could be optimized further
static double integrate(SumOfDiracs f, double[] v)
           
static double integrate(SumOfDiracs f, MultiscaleFunction g, int j1)
           
static double integrate(SumOfDiracs f, MultiscaleFunction g, int j1, double a, double b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxiter

public static int maxiter
Maximum number of allowed iterations in order to match objects.

Method Detail

add

public static double[] add(MultiscaleFunction f,
                           double a,
                           MultiscaleFunction g,
                           int j1)
Calculates f+a*g. Careful before using this method since it uses a specific normalisation. Useful for matching pursuit purpose.


add

public static AbstractDoubleVector add(SparseDiscreteFunction f,
                                       double a,
                                       MultiscaleFunction g,
                                       int j1)
Calculates f+a*g. Careful before using this method since it uses a specific normalisation. Useful for matching pursuit purpose.


add

public static AbstractDoubleVector add(MultiscaleFunction g,
                                       double a,
                                       SparseDiscreteFunction f,
                                       int j1)
Calculates f+a*g. Careful before using this method since it uses a specific normalisation. Useful for matching pursuit purpose.


add

public static double[] add(DiscreteFunction f,
                           double a,
                           DiscreteFunction g)
Calculates f+a*g. Careful before using this method since it uses a specific normalisation. Useful for matching pursuit purpose.


add

public static AbstractDoubleVector add(SparseDiscreteFunction f,
                                       double a,
                                       SparseDiscreteFunction g)
Calculates f+a*g. Careful before using this method since it uses a specific normalisation. Useful for matching pursuit purpose.


add

public static AbstractDoubleVector add(DiscreteFunction f,
                                       double a,
                                       SparseDiscreteFunction g)
Calculates f+a*g. Careful before using this method since it uses a specific normalisation. Useful for matching pursuit purpose.


add

public static AbstractDoubleVector add(SparseDiscreteFunction f,
                                       double a,
                                       DiscreteFunction g)
Calculates f+a*g. Careful before using this method since it uses a specific normalisation. Useful for matching pursuit purpose.


integrate

public static double integrate(MultiscaleFunction f,
                               MultiscaleFunction g,
                               int j1,
                               double a,
                               double b)

integrate

public static double integrate(DiscreteFunction f,
                               DiscreteFunction g)

integrate

public static double integrate(SparseDiscreteFunction f,
                               DiscreteFunction g)

integrate

public static double integrate(DiscreteFunction f,
                               SparseDiscreteFunction g)

integrate

public static double integrate(SparseDiscreteFunction f,
                               SparseDiscreteFunction g)
This method could be optimized further


integrate

public static double integrate(Cosine f,
                               DiscreteFunction g)

integrate

public static double integrate(Sine f,
                               DiscreteFunction g)

integrate

public static double integrate(DiscreteFunction f,
                               Sine g)

integrate

public static double integrate(DiscreteFunction f,
                               Cosine g)

integrate

public static double integrate(Cosine f,
                               SparseDiscreteFunction g)

integrate

public static double integrate(Sine f,
                               SparseDiscreteFunction g)

integrate

public static double integrate(SparseDiscreteFunction f,
                               Sine g)

integrate

public static double integrate(SparseDiscreteFunction f,
                               Cosine g)

integrate

public static double integrate(MultiscaleFunction f,
                               MultiscaleFunction g,
                               int j1)

integrate

public static double integrate(PiecewiseConstant f,
                               MultiscaleFunction g,
                               int j1,
                               double a,
                               double b)

integrate

public static double integrate(PiecewiseConstant f,
                               MultiscaleFunction g,
                               int j1)

integrate

public static double integrate(SumOfDiracs f,
                               MultiscaleFunction g,
                               int j1,
                               double a,
                               double b)

integrate

public static double integrate(SumOfDiracs f,
                               MultiscaleFunction g,
                               int j1)

integrate

public static double integrate(SumOfDiracs f,
                               double[] v)

getScalingCoefficients

public static int[] getScalingCoefficients(MultiscaleFunction f,
                                           MultiscaleFunction g,
                                           int j1)
While this method is public (for transparency reasons) it should not be called by other classes unless absolutely necessary.