# Patent

## Title
Method for fast wavelet transform of a signal

## Abstract

Method for determining at least one wavelet coefficient Ws(τ) of a wavelet transform of a signal in which the mother wavelet of the transform has a support subdivided into J≧1 intervals bound by (J+1) extremity points, and is defined by a polynomial of a maximum level N≧1 on each interval. The method includes calculating all or some of the primitives of the signal of order k between 2 and N+1, at least at (J+1) points corresponding to extremity points of the intervals of the wavelet support dilated by a factor of s and translated by a time τ; calculating the convolution of said or each primitive sampled in this way with a respective succession of (J+1) coefficients Cik(s), dependent upon said wavelet; and determining the wavelet coefficient by calculating a linear combination of convolutions. Steps a) to c) are implemented by a processor configured or programmed in an appropriate manner.

## Background
FIELD
The invention relates to a method for fast wavelet transform of a signal. A method according to the invention is implemented using a processor, preferably in real time. The invention also relates to a processor configured or programmed for the implementation of such a method.
The method is particularly appropriate to the implementation of a continuous wavelet transform, but may equally be applied to the case of a discrete transform.
The signal to be transformed is generally a digital signal; it may in particular be a signal obtained by sampling and quantifying an analog signal, representative of a physical quantity. The method of the invention may be applied in particular to the processing of neuronal signals (neuro-electrical signals), especially in neuronal control or brain-computer interface systems.
BACKGROUND
Wavelet transform is an important tool in signal processing, used in particular to perform time-frequency analyses. In general terms, a wavelet transform is described by the convolution:




  
    
      
        
          
            W
            s
          
          ⁡
          
            (
            τ
            )
          
        
        =
        
          
            1
            
              s
            
          
          ⁢
          
            
              ∫
              
                -
                ∞
              
              ∞
            
            ⁢
            
              
                x
                ⁡
                
                  (
                  t
                  )
                
              
              ⁢
              
                
                  ψ
                  *
                
                ⁡
                
                  (
                  
                    
                      t
                      -
                      τ
                    
                    s
                  
                  )
                
              
              ⁢
              
                
              
              ⁢
              
                d
                t
              
            
          
        
      
    
    
      
        (
        1
        )
      
    
  




    
    
        where:
        
            t is time;
            x(t) is the signal to be transformed;
            function ψεL2() is the “mother wavelet”, also called the “generator function”; it generally presents a compact support [−α, +α];
            s>0 is called the “scale factor”;
            τ is the time delay;
            “*” indicates the conjugate complex; in fact, ψ can generally be a function with complex values, but in the following we shall consider, without losing generality, the case where it is a real function;
            Ws(τ) is a wavelet coefficient dependent on s and τ.
        
        
    
    


We talk about “Discrete Wavelet Transform” (DWT), when s=am and τ=nb, where m,n are positive integers. If s and τ can adopt any value—any positive value in the case of s—we talk about “Continuous Wavelet Transform” (CWT), even if signal x is discrete, which is generally the case, to allow it to be digitally processed.
DWTs are generally more suitable for processing neuronal signals, for example, because they allow said signals to be analyzed at the desired frequential resolution.
For more details on wavelet transform, one may refer to: Beatrice Pesquet-popescu and Jean-Christophe Pesquet “Ondelettes et applications” (“Wavelets and applications”), Techniques de l'Ingénieur, Chapter TE 5 215.
Fast algorithms have been developed for performing discrete wavelet transforms. In contrast, continuous wavelet transforms remain relatively onerous in terms of time and resources, which limits their use in real time applications and low energy consumption applications.
In a conventional manner, a CWT is implemented, in an approximate fashion, by replacing the integral of equation (1) by a discrete sum. The case of a signal x(t) sampled at discrete intervals t=−1, 0, 1, 2 . . . is considered (for the sake of simplicity, and without losing generality, the time scale is taken such that its discretization step equals 1), and xi=x(ti) is put down; the mother wavelet ψ is defined on a compact support [−α, +α]. The function:




  
    
      ψ
      s
    
    ⁡
    
      (
      t
      )
    
  
  =
  
    
      1
      
        s
      
    
    ⁢
    
      ψ
      ⁡
      
        (
        
          t
          s
        
        )
      
    
  




is defined, whose support is [−αs, +αs] where αs=α/s. Equation (1) then becomes:





  
    
      W
      s
    
    ⁡
    
      (
      τ
      )
    
  
  =
  
    
      
        ∫
        
          -
          
            α
            s
          
        
        
          α
          s
        
      
      ⁢
      
        
          x
          ⁡
          
            (
            
              t
              +
              τ
            
            )
          
        
        ⁢
        
          
            ψ
            s
          
          ⁡
          
            (
            t
            )
          
        
        ⁢
        
          
        
        ⁢
        
          d
          t
        
      
    
    =
    
      
        
          ∑
          
            i
            =
            
              -
              
                α
                s
              
            
          
        
        
          
            α
            s
          
          -
          1
        
      
      ⁢
      
        
          ∫
          i
          
            i
            +
            1
          
        
        ⁢
        
          
            x
            ⁡
            
              (
              
                t
                +
                τ
              
              )
            
          
          ⁢
          
            
              ψ
              s
            
            ⁡
            
              (
              t
              )
            
          
          ⁢
          
            
          
          ⁢
          
            d
            t
          
        
      
    
  




To calculate this sum of integrals, we make the piecewise constant signal approximation: x(t)=xi ∀tε[i, i+1[(other approximations are possible, for example, linear interpolation between t=i and t=i+1); furthermore, one limits oneself to integer values of τ(τ= . . . , −1, 0, 1, . . . ). One can therefore write:




  
    
      
        
          
            
              W
              s
            
            ⁡
            
              (
              τ
              )
            
          
          =
          
            
              
                ∑
                
                  i
                  =
                  
                    -
                    α
                  
                
              
              
                α
                -
                1
              
            
            ⁢
            
              
                A
                i
              
              ⁢
              
                x
                
                  i
                  +
                  τ
                
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            with
            ⁢
            
              
            
            ⁢
            
              A
              i
            
          
          =
          
            
              ∫
              i
              
                i
                +
                1
              
            
            ⁢
            
              
                
                  ψ
                  s
                
                ⁡
                
                  (
                  t
                  )
                
              
              ⁢
              
                
              
              ⁢
              
                
                  d
                  t
                
                .
              
            
          
        
      
    
    
      
        (
        2
        )
      
    
  




By considering the coefficients Ai as known, which can be calculated once and for all, one sees that determining a single wavelet coefficient requires (2α−1) multiplications and (2α−2) sums. Now, α can adopt relatively large values, for example, to make a time-frequency analysis of a signal sampled at 1 kHz in frequency range 10 Hz-300 Hz with Meyer wavelets, α is typically between 100 and 3000.
The article by M. Omachi and S. Omachi “Fast calculation of continuous wavelet transform using polynomial”, Proceedings of the 2007 International Conference on Wavelet Analysis and Pattern Recognition, Beijing, China, 2-4 Nov. 2007 describes a fast CWT method for a signal, in which the number of operations required does not depend on α. In this method, the mother wavelet is defined by a polynomial of order d on a compact support: typically, order d and the coefficients of the polynomial are chosen in such a way as to approximate, with the desired accuracy, a non-polynomial “reference” wavelet, such as a Haar wavelet. The wavelet coefficients are calculated in a recursive manner; hence Ws(τ) is calculated from Ws−1(τ), the scale factor being considered an integer. The computational cost of calculating coefficient Ws(τ) is O(ds).
This method has a certain number of disadvantages.
Firstly, the polynomial approximation of a “reference wavelet”, such as the Haar wavelet, may necessitate recourse to a high order d, which increases the computational cost of the method accordingly.
Secondly, it does not allow coefficients Ws to be determined for different values of s—and therefore for different frequencies—independently of each other. On the contrary, the recursive character of the algorithm means that the determination of Ws necessarily involves determining W1 . . . Ws−1. The method of M. Omachi and S. Omachi is therefore not optimized for the applications in which a signal has to be analyzed only in certain spectral bands.
SUMMARY
The invention aims to obtain a method enabling fast determination of at least one wavelet coefficient Ws(τ) of a wavelet transform of a signal without displaying the aforementioned disadvantages of the prior art.
One object of the invention enabling this aim to be achieved is a method for determining at least one wavelet coefficient Ws(τ) of a wavelet transform of a signal, said wavelet transform being defined in relation to a mother wavelet, wherein:

    
    
        said mother wavelet is a continuous function, having a support subdivided into J≧1 intervals bound by (J+1) extremity points, said function being defined by a polynomial of maximum level N≧1 on each said interval;
        and wherein said method includes the steps consisting in:
        
            a) calculating all or some of the primitives of said signal of order k comprised between 2 and N+1, at least at (J+1) points corresponding to said extremity points of the intervals of the wavelet support dilated by a factor of and translated by a time τ;
            b) calculating the convolution of said or each said primitive sampled in this way with a respective succession of (J+1) coefficients Cik(s), dependent on said wavelet; and
            c) determining said wavelet coefficient by calculating a linear combination of said convolutions;
        
        
    
    


said steps a) to c) being implemented by a processor configured or programmed in an appropriate manner.
Contrary to the case of the algorithm of M. Omachi and S. Omachi, the mother wavelet in the method of the invention is not polynomial, but piecewise polynomial. The maximum order N can therefore be kept small (typically N=2 or N=3) while making it possible effectively to approximate any reference mother wavelet on a compact support. The computational cost depends at the same time on N (maximum polynomial order defining the mother wavelet), on J (number of intervals or pieces) and on the regularity of wavelet ψ, piecewise polynomial; one therefore has a plurality of parameters at one's disposal enabling the method to be optimized. Furthermore, the different coefficients Ws(τ) can be determined independently of each other.
According to different embodiments of the method of the invention:

    
    
        Said coefficients Cik(s) can be dependent upon the discontinuities of the derivatives of orders between 1 and N of the wavelet, corresponding to said extremity points of the intervals constituting its support.
        Stages b) and c) can be implemented by applying the following equation:
    
    






  
    
      W
      s
    
    ⁡
    
      (
      τ
      )
    
  
  =
  
    
      
        ∑
        
          k
          =
          2
        
      
      
        N
        +
        1
      
    
    ⁢
    
      
        
          ∑
          
            i
            =
            0
          
        
        J
      
      ⁢
      
        
          
            (
            
              -
              1
            
            )
          
          
            k
            -
            1
          
        
        ⁢
        
          
            C
            i
            k
          
          ⁡
          
            (
            s
            )
          
        
        ⁢
        
          
            X
            
              (
              k
              )
            
          
          ⁡
          
            (
            
              τ
              +
              
                
                  α
                  i
                
                s
              
            
            )
          
        
      
    
  




where:

    
    
        Ws(τ) is the desired wavelet coefficient, corresponding to a time delay τ and to a dilatation s of a mother wavelet ψ(t);
        X(k)(t) is the order k primitive of the signal;
        αi are the extremity points of the intervals constituting the support of the mother wavelet, taken in order; and
        Cik(s), with i between 0 and J, are the coefficients forming the succession with which the order k primitive of the signal is convoluted.
    
    


In particular, the coefficients Cik(s) can be given by:



  
    
      
        
          C
          i
          k
        
        ⁡
        
          (
          s
          )
        
      
      =
      
        
          
            
              (
              
                ψ
                
                  i
                  -
                  1
                
                S
              
              )
            
            
              (
              
                k
                -
                1
              
              )
            
          
          ⁢
          
            (
            
              
                α
                i
              
              s
            
            )
          
        
        -
        
          
            
              (
              
                ψ
                i
                s
              
              )
            
            
              (
              
                k
                -
                1
              
              )
            
          
          ⁢
          
            (
            
              
                α
                i
              
              s
            
            )
          
        
      
    
    ,
    
      

    
    ⁢
    
      i
      =
      1
    
    ,
    ...
    ⁢
    
      
    
    ,
    
      J
      -
      1
    
  




  
    
      
        C
        0
        k
      
      ⁡
      
        (
        s
        )
      
    
    =
    
      
        -
        
          
            (
            
              ψ
              0
              S
            
            )
          
          
            (
            
              k
              -
              1
            
            )
          
        
      
      ⁢
      
        (
        
          
            2
            ⁢
            
              α0
              0
            
          
          s
        
        )
      
    
  




  
    
      
        C
        J
        k
      
      ⁡
      
        (
        s
        )
      
    
    =
    
      
        
          (
          
            ψ
            J
            S
          
          )
        
        
          (
          
            k
            -
            1
          
          )
        
      
      ⁢
      
        (
        
          
            α
            J
          
          s
        
        )
      
    
  



where (ψis)(k−1) is the derivative of order (k−1) of the function





  
    
      ψ
      i
      s
    
    =
    
      
        
          ψ
          i
          s
        
        ⁡
        
          (
          t
          )
        
      
      =
      
        
          1
          
            s
          
        
        ⁢
        
          
            ψ
            i
          
          ⁡
          
            (
            
              t
              s
            
            )
          
        
      
    
  
  ,




ψi being the polynomial that defines the mother wavelet at the ith interval of its support.

    
    
        Said step a) can include:
    
    


a1) calculation of said primitives of order k comprised between 2 and N+1 of said signal; and
a2) their sampling at (J+1) sampling points corresponding to said extremity points of the intervals on the wavelet support dilated by a factor of s and translated by a time τ.

    
    
        In a case particularly simple to implement, said wavelet can be a continuous function and can have a first continuous derivative, piecewise polynomial of order of two; in this case, said step a) consists in calculating only the order primitive of order 3 of said signal and steps b) and c) can be implemented by applying the following equation:
    
    





  
    
      W
      ⁡
      
        (
        τ
        )
      
    
    =
    
      
        
          ∑
          
            i
            =
            0
          
        
        J
      
      ⁢
      
        
          B
          i
        
        ⁢
        
          
            X
            
              (
              3
              )
            
          
          ⁡
          
            (
            
              τ
              +
              
                
                  α
                  i
                
                s
              
            
            )
          
        
      
    
  




  
    where
    ⁢
    
      :
    
  




  
    
      
        B
        i
      
      =
      
        2
        ⁢
        
          
        
        ⁢
        
          1
          
            s
          
        
        ⁢
        
          1
          
            s
            2
          
        
        ⁢
        
          (
          
            
              p
              
                i
                -
                1
              
            
            -
            
              p
              i
            
          
          )
        
      
    
    ,
    
      i
      =
      1
    
    ,
    ...
    ⁢
    
      
    
    ,
    
      
        J
        -
        1
      
      ;
    
  




  
    
      
        B
        0
      
      =
      
        
          -
          2
        
        ⁢
        
          
        
        ⁢
        
          1
          
            s
          
        
        ⁢
        
          1
          
            s
            2
          
        
        ⁢
        
          p
          0
        
      
    
    ;
  




  
    
      B
      J
    
    =
    
      
    
    ⁢
    
      
        1
        
          s
        
      
      ⁢
      
        1
        
          s
          2
        
      
      ⁢
      2
      ⁢
      
        
          p
          J
        
        .
      
    
  



    
    
        Said step a) can be implemented in real time, said primitives then being calculated as cumulative sums during an acquisition step of said signal, then saved to a first memory of said processor. Furthermore, said successions of coefficients Cik(s) can be saved to a second memory of said processor prior to said acquisition step of said signal.
    
    


Another object of the invention is a method for wavelet transform of a signal in discrete or discretized time, comprising the determination of a plurality of wavelet coefficients associated with different dilatations/translations of a single mother wavelet, wherein each said wavelet coefficient is determined by a method as described above.
Yet another object of the invention is a method for wavelet transform of a signal, comprising the determination of a plurality of wavelet coefficients associated with different dilatations/translations of a single mother wavelet, wherein each wavelet coefficient Ws(τ), corresponding to a time delay τ and to a dilatation s of a mother wavelet ψ(t), is determined by a method as described above, in which:

    
    
        said step a) is implemented in real time, said primitives being calculated as cumulative sums during an acquisition step of said signal, then saved to a first memory of said processor;
        said steps b) and c) are implemented in real time using successions of coefficients saved beforehand to a second memory of said processor;
    
    


the wavelet coefficients Ws(τ), corresponding to a time delay τ and to a dilatation s of a mother wavelet ψ(t), being determined from the time t=τ+α/s, where α is half the width of the support of said mother wavelet.
Said signal can be a digital signal, obtained if necessary by sampling and quantifying an analog signal. In particular, the signal can be a signal acquired by a detector such as an electrode, a photosensitive cell, an acoustic detector, or in a general manner, any detector or sensor delivering an electrical signal under the effect of a physical, chemical or biological parameter. Even more particularly, it can be a signal representative of a neuronal activity of a brain, especially a human brain (neurological or neuro-electrical signal).
Yet another object of the invention is a processor configured or programmed to implement a method according to one of the preceding claims. By processor, one means any machine for processing information; typically, this could be an electronic processor, preferably digital. In particular, it could be a conventional computer programmed in an appropriate manner, a processor dedicated to processing digital signals (a digital signal processor or DSP), a wired digital circuit, a programmed/wired hybrid system etc.



BRIEF DESCRIPTION OF THE DRAWINGS
Other characteristics, details and advantages of the invention will emerge from reading the description given with reference to the attached drawings given as examples and in which, respectively:
FIG. 1 illustrates a block diagram of a method according to an embodiment of the invention; and
FIG. 2 illustrates a functional diagram of a processor for implementing a real time method according to an embodiment of the invention.



DETAILED DESCRIPTION
The method according to the invention will first be illustrated in the simple case of a mother wavelet, quadratic piecewise (N=2), defined on the interval [−α, α], and for s=1. In this case, we can write:




  
    
      
        
          W
          ⁡
          
            (
            τ
            )
          
        
        =
        
          
            ∫
            
              -
              α
            
            α
          
          ⁢
          
            
              x
              ⁡
              
                (
                
                  t
                  +
                  τ
                
                )
              
            
            ⁢
            
              ψ
              ⁡
              
                (
                t
                )
              
            
            ⁢
            
              
            
            ⁢
            
              d
              t
            
          
        
      
    
    
      
        (
        3
        )
      
    
  




Let −α=α0<α1< . . . <αJ=α be the partition of the support [−α, α]; the mother wavelet ψ(t), which is continuous, is then defined by:





  
    
      
        
          ψ
          ⁡
          
            (
            t
            )
          
        
        =
        
          {
          
            
              
                
                  
                    
                      p
                      j
                    
                    ⁢
                    
                      t
                      2
                    
                  
                  +
                  
                    
                      q
                      j
                    
                    ⁢
                    t
                  
                  +
                  
                    r
                    j
                  
                
              
              
                
                  ∀
                  
                    t
                    ∈
                    
                      [
                      
                        
                          α
                          j
                        
                        ,
                        
                          α
                          
                            j
                            +
                            1
                          
                        
                      
                      ]
                    
                  
                
              
            
            
              
                
                  
                    ψ
                    ⁡
                    
                      (
                      t
                      )
                    
                  
                  =
                  0
                
              
              
                
                  ∀
                  
                    
                      
                      t
                      
                    
                    ≥
                    α
                  
                
              
            
          
        
      
    
    
      
        (
        4
        )
      
    
  




By integrating (3) by parts, one obtains:





  
    
      
        
          
            
              
                W
                ⁡
                
                  (
                  τ
                  )
                
              
              =
              
              ⁢
              
                
                  ∫
                  
                    -
                    α
                  
                  α
                
                ⁢
                
                  
                    x
                    ⁡
                    
                      (
                      
                        t
                        +
                        τ
                      
                      )
                    
                  
                  ⁢
                  
                    ψ
                    ⁡
                    
                      (
                      t
                      )
                    
                  
                  ⁢
                  
                    
                  
                  ⁢
                  
                    d
                    t
                  
                
              
            
          
        
        
          
            
              =
              
              ⁢
              
                
                  
                    ∑
                    
                      j
                      =
                      0
                    
                    
                      J
                      -
                      1
                    
                  
                  ⁢
                  
                    
                      ∫
                      
                        α
                        j
                      
                      
                        α
                        
                          j
                          +
                          1
                        
                      
                    
                    ⁢
                    
                      
                        x
                        ⁡
                        
                          (
                          
                            t
                            +
                            τ
                          
                          )
                        
                      
                      ⁢
                      
                        ψ
                        ⁡
                        
                          (
                          t
                          )
                        
                      
                      ⁢
                      
                        
                      
                      ⁢
                      
                        d
                        t
                      
                    
                  
                
                =
              
            
          
        
        
          
            
              =
              
              ⁢
              
                
                  ∑
                  
                    j
                    =
                    0
                  
                  
                    J
                    -
                    1
                  
                
                ⁢
                
                  
                    (
                    
                      
                        
                          
                            X
                            
                              (
                              1
                              )
                            
                          
                          ⁡
                          
                            (
                            
                              t
                              +
                              τ
                            
                            )
                          
                        
                        ⁢
                        
                          ψ
                          ⁡
                          
                            (
                            t
                            )
                          
                        
                      
                      ⁢
                      
                        |
                        
                          α
                          j
                        
                        
                          α
                          
                            j
                            +
                            1
                          
                        
                      
                      ⁢
                      
                        -
                        
                          
                            ∫
                            
                              α
                              j
                            
                            
                              α
                              
                                j
                                +
                                1
                              
                            
                          
                          ⁢
                          
                            
                              
                                X
                                
                                  (
                                  1
                                  )
                                
                              
                              ⁡
                              
                                (
                                
                                  t
                                  +
                                  τ
                                
                                )
                              
                            
                            ⁢
                            
                              
                                ψ
                                ′
                              
                              ⁡
                              
                                (
                                t
                                )
                              
                            
                            ⁢
                            
                              
                            
                            ⁢
                            
                              d
                              t
                            
                          
                        
                      
                    
                    )
                  
                  .
                
              
            
          
        
      
    
    
      
        (
        5
        )
      
    
  




where X(1)(t) is an order 1 primitive of function x(t), namely a function whose first derivative relative to t is x(t).

For a continuous mother wavelet ψ(t), and considering that:

ψ(−α)=ψ(α0)=ψ(αJ)=ψ(α)=0, we have:





  
    
      
        
          
            
              ∑
              
                j
                =
                0
              
              
                J
                -
                1
              
            
            ⁢
            
              
                
                  X
                  
                    (
                    1
                    )
                  
                
                ⁡
                
                  (
                  
                    t
                    +
                    τ
                  
                  )
                
              
              ⁢
              
                ψ
                ⁡
                
                  (
                  t
                  )
                
              
            
          
          ⁢
          
            |
            
              α
              j
            
            
              α
              
                j
                +
                1
              
            
          
        
        =
        
        ⁢
        
          
            
              ∑
              
                j
                =
                0
              
              
                J
                -
                1
              
            
            ⁢
            
              (
              
                
                  
                    
                      
                        
                          
                            X
                            
                              (
                              1
                              )
                            
                          
                          ⁡
                          
                            (
                            
                              
                                α
                                
                                  j
                                  +
                                  1
                                
                              
                              +
                              τ
                            
                            )
                          
                        
                        ⁢
                        
                          ψ
                          ⁡
                          
                            (
                            
                              α
                              
                                j
                                +
                                1
                              
                            
                            )
                          
                        
                      
                      -
                    
                  
                
                
                  
                    
                      
                        
                          X
                          
                            (
                            1
                            )
                          
                        
                        ⁡
                        
                          (
                          
                            
                              α
                              j
                            
                            +
                            τ
                          
                          )
                        
                      
                      ⁢
                      
                        ψ
                        ⁡
                        
                          (
                          
                            α
                            j
                          
                          )
                        
                      
                    
                  
                
              
              )
            
          
          =
        
      
    
  
  
    
      
        =
        
        ⁢
        
          
            
              ∑
              
                j
                =
                1
              
              J
            
            ⁢
            
              (
              
                
                  
                    X
                    
                      (
                      1
                      )
                    
                  
                  ⁡
                  
                    (
                    
                      
                        α
                        j
                      
                      +
                      τ
                    
                    )
                  
                
                ⁢
                
                  ψ
                  ⁡
                  
                    (
                    
                      α
                      j
                    
                    )
                  
                
              
              )
            
          
          -
        
      
    
  
  
    
      
        
        ⁢
        
          
            
              ∑
              
                j
                =
                0
              
              
                J
                -
                1
              
            
            ⁢
            
              (
              
                
                  
                    X
                    
                      (
                      1
                      )
                    
                  
                  ⁡
                  
                    (
                    
                      
                        α
                        j
                      
                      +
                      τ
                    
                    )
                  
                
                ⁢
                
                  ψ
                  ⁡
                  
                    (
                    
                      α
                      j
                    
                    )
                  
                
              
              )
            
          
          =
        
      
    
  
  
    
      
        =
        
        ⁢
        
          
            
              
                X
                
                  (
                  1
                  )
                
              
              ⁡
              
                (
                
                  
                    α
                    J
                  
                  +
                  τ
                
                )
              
            
            ⁢
            
              ψ
              ⁡
              
                (
                
                  α
                  J
                
                )
              
            
          
          -
          
            
              
                X
                
                  (
                  1
                  )
                
              
              ⁡
              
                (
                
                  
                    α
                    0
                  
                  +
                  τ
                
                )
              
            
            ⁢
            
              ψ
              ⁡
              
                (
                
                  α
                  0
                
                )
              
            
          
        
      
    
  
  
    
      
        =
        
        ⁢
        0
      
    
  




Hence:





  
    
      
        
          
            
              
                W
                ⁡
                
                  (
                  τ
                  )
                
              
              =
              
              ⁢
              
                
                  ∫
                  
                    -
                    α
                  
                  α
                
                ⁢
                
                  
                    x
                    ⁡
                    
                      (
                      
                        t
                        +
                        τ
                      
                      )
                    
                  
                  ⁢
                  
                    ψ
                    ⁡
                    
                      (
                      t
                      )
                    
                  
                  ⁢
                  
                    
                  
                  ⁢
                  
                    d
                    t
                  
                
              
            
          
        
        
          
            
              =
              
              ⁢
              
                
                  ∑
                  
                    j
                    =
                    0
                  
                  
                    J
                    -
                    1
                  
                
                ⁢
                
                  (
                  
                    -
                    
                      
                        ∫
                        
                          α
                          j
                        
                        
                          α
                          
                            j
                            +
                            1
                          
                        
                      
                      ⁢
                      
                        
                          
                            X
                            
                              (
                              1
                              )
                            
                          
                          ⁡
                          
                            (
                            
                              t
                              +
                              τ
                            
                            )
                          
                        
                        ⁢
                        
                          
                            ψ
                            ′
                          
                          ⁡
                          
                            (
                            t
                            )
                          
                        
                        ⁢
                        
                          
                        
                        ⁢
                        
                          d
                          t
                        
                      
                    
                  
                  )
                
              
            
          
        
        
          
            
              =
              
              ⁢
              
                -
                
                  
                    ∫
                    
                      -
                      α
                    
                    α
                  
                  ⁢
                  
                    
                      
                        X
                        
                          (
                          1
                          )
                        
                      
                      ⁡
                      
                        (
                        
                          t
                          +
                          τ
                        
                        )
                      
                    
                    ⁢
                    
                      
                        ψ
                        ′
                      
                      ⁡
                      
                        (
                        t
                        )
                      
                    
                    ⁢
                    
                      
                    
                    ⁢
                    
                      d
                      t
                    
                  
                
              
            
          
        
      
    
    
      
        (
        6
        )
      
    
  




By integrating (6) by parts and assuming, furthermore, that the linear piecewise function ψ′(t)=2pjt+qjtε[αj, αj+i] is continuous, we find:





  
    
      
        
          W
          ⁡
          
            (
            τ
            )
          
        
        =
        
          
            
              ∫
              
                -
                α
              
              α
            
            ⁢
            
              
                x
                ⁡
                
                  (
                  
                    t
                    +
                    τ
                  
                  )
                
              
              ⁢
              
                ψ
                ⁡
                
                  (
                  t
                  )
                
              
              ⁢
              
                
              
              ⁢
              
                d
                t
              
            
          
          =
          
            
              ∫
              
                -
                α
              
              α
            
            ⁢
            
              
                
                  X
                  
                    (
                    2
                    )
                  
                
                ⁡
                
                  (
                  
                    t
                    +
                    τ
                  
                  )
                
              
              ⁢
              
                
                  ψ
                  ′′
                
                ⁡
                
                  (
                  t
                  )
                
              
              ⁢
              
                
              
              ⁢
              
                d
                t
              
            
          
        
      
    
    
      
        (
        7
        )
      
    
  




where X(2)(t) is an order 2 primitive of the function x(t), namely a function whose second derivative relative to t is x(t).

To obtain (7), we utilized the fact that ψ′(τ)=0∀|t|≧α.
The second derivative of ψ(t) is a constant piecewise function:
ψ′′(t)=2pj ∀tε└αj, αj+1┘, which allows us to write:




  
    
      
        
          W
          ⁡
          
            (
            τ
            )
          
        
        =
        
        ⁢
        
          
            ∑
            
              j
              =
              0
            
            
              J
              -
              1
            
          
          ⁢
          
            
              ∫
              
                α
                j
              
              
                α
                
                  j
                  +
                  1
                
              
            
            ⁢
            
              
                
                  X
                  
                    (
                    2
                    )
                  
                
                ⁡
                
                  (
                  
                    t
                    +
                    τ
                  
                  )
                
              
              ⁢
              
                
                  ψ
                  ′′
                
                ⁡
                
                  (
                  t
                  )
                
              
              ⁢
              
                
              
              ⁢
              
                d
                t
              
            
          
        
      
    
  
  
    
      
        =
        
        ⁢
        
          
            ∑
            
              j
              =
              0
            
            
              J
              -
              1
            
          
          ⁢
          
            2
            ⁢
            
              p
              j
            
            ⁢
            
              
                ∫
                
                  α
                  j
                
                
                  α
                  
                    j
                    +
                    1
                  
                
              
              ⁢
              
                
                  
                    X
                    
                      (
                      2
                      )
                    
                  
                  ⁡
                  
                    (
                    
                      t
                      +
                      τ
                    
                    )
                  
                
                ⁢
                
                  
                
                ⁢
                
                  d
                  t
                
              
            
          
        
      
    
  
  
    
      
        =
        
        ⁢
        
          
            
              ∑
              
                j
                =
                0
              
              
                J
                -
                1
              
            
            ⁢
            
              2
              ⁢
              
                p
                j
              
              ⁢
              
                
                  ∫
                  
                    α
                    j
                  
                  
                    α
                    
                      j
                      +
                      1
                    
                  
                
                ⁢
                
                  
                    
                      X
                      
                        (
                        2
                        )
                      
                    
                    ⁡
                    
                      (
                      
                        t
                        +
                        τ
                      
                      )
                    
                  
                  ⁢
                  
                    
                  
                  ⁢
                  
                    d
                    t
                  
                
              
            
          
          =
        
      
    
  
  
    
      
        =
        
        ⁢
        
          
            ∑
            
              j
              =
              0
            
            
              J
              -
              1
            
          
          ⁢
          
            2
            ⁢
            
              
                p
                j
              
              ⁡
              
                (
                
                  
                    
                      X
                      
                        (
                        3
                        )
                      
                    
                    ⁡
                    
                      (
                      
                        τ
                        +
                        
                          α
                          
                            j
                            +
                            1
                          
                        
                      
                      )
                    
                  
                  -
                  
                    
                      X
                      
                        (
                        3
                        )
                      
                    
                    ⁡
                    
                      (
                      
                        τ
                        +
                        
                          α
                          j
                        
                      
                      )
                    
                  
                
                )
              
            
          
        
      
    
  
  
    
      
        =
        
        ⁢
        
          
            
              
                ∑
                
                  j
                  =
                  1
                
                J
              
              ⁢
              
                2
                ⁢
                
                  p
                  
                    j
                    -
                    1
                  
                
                ⁢
                
                  
                    X
                    
                      (
                      3
                      )
                    
                  
                  ⁡
                  
                    (
                    
                      τ
                      +
                      
                        α
                        j
                      
                    
                    )
                  
                
              
            
            -
            
              
                
                  ∑
                  
                    j
                    =
                    0
                  
                
                
                  J
                  -
                  1
                
              
              ⁢
              
                2
                ⁢
                
                  p
                  j
                
                ⁢
                
                  
                    X
                    
                      (
                      3
                      )
                    
                  
                  ⁡
                  
                    (
                    
                      τ
                      +
                      
                        α
                        j
                      
                    
                    )
                  
                
              
            
          
          =
        
      
    
  
  
    
      
        =
        
        ⁢
        
          
            2
            ⁢
            
              p
              
                J
                -
                1
              
            
            ⁢
            
              
                X
                
                  (
                  3
                  )
                
              
              ⁡
              
                (
                
                  τ
                  +
                  
                    α
                    J
                  
                
                )
              
            
          
          -
          
            2
            ⁢
            
              p
              0
            
            ⁢
            
              
                X
                
                  (
                  3
                  )
                
              
              ⁡
              
                (
                
                  τ
                  +
                  
                    α
                    0
                  
                
                )
              
            
          
          +
        
      
    
  
  
    
      
        
        ⁢
        
          
            ∑
            
              j
              =
              1
            
            
              J
              -
              1
            
          
          ⁢
          
            2
            ⁢
            
              (
              
                
                  p
                  
                    j
                    -
                    1
                  
                
                -
                
                  p
                  j
                
              
              )
            
            ⁢
            
              
                
                  X
                  
                    (
                    3
                    )
                  
                
                ⁡
                
                  (
                  
                    τ
                    +
                    
                      α
                      j
                    
                  
                  )
                
              
              .
            
          
        
      
    
  




where X(3)(t) is an order 3 primitive of function x(t), namely a function whose third derivative relative to t is x(t).

We therefore obtain:




  
    
      
        
          
            W
            ⁡
            
              (
              τ
              )
            
          
          =
          
            
              ∑
              
                i
                =
                0
              
              J
            
            ⁢
            
              
                B
                i
              
              ⁢
              
                
                  X
                  
                    (
                    3
                    )
                  
                
                ⁡
                
                  (
                  
                    τ
                    +
                    
                      α
                      i
                    
                  
                  )
                
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          with
          ⁢
          
            :
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              B
              i
            
            =
            
              2
              ⁢
              
                (
                
                  
                    p
                    
                      i
                      -
                      1
                    
                  
                  -
                  
                    p
                    i
                  
                
                )
              
            
          
          ,
          
            i
            =
            1
          
          ,
          ...
          ⁢
          
            
          
          ,
          
            
              J
              -
              1
            
            ;
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              B
              0
            
            =
            
              
                -
                2
              
              ⁢
              
                p
                0
              
            
          
          ;
        
        ⁢
        
          

        
        ⁢
        
          
            B
            J
          
          =
          
            2
            ⁢
            
              
                p
                J
              
              .
            
          
        
      
    
    
      
        (
        8
        )
      
    
  




Assuming that the order 3 primitive of x(t) is known, J+1 multiplications and as many sums are required to determine a wavelet coefficient, instead of the (2α−1) multiplications and (2α−2) sums needed for the direct application of equation (2).
If the first derivative of the mother wavelet ψ(t) is not continuous, then the sum




  
    
      ∑
      
        j
        =
        0
      
      
        J
        -
        1
      
    
    ⁢
    
      
        
          X
          
            (
            2
            )
          
        
        ⁡
        
          (
          
            t
            +
            τ
          
          )
        
      
      ⁢
      
        
          ψ
          ′
        
        ⁡
        
          (
          t
          )
        
      
    
  
  ⁢
  
    |
    
      α
      j
    
    
      α
      
        j
        +
        1
      
    
  




is no longer equal to zero.

An elementary calculation allows us to show that:




  
    
      
        
          
            
              ∑
              
                j
                =
                0
              
              
                J
                -
                1
              
            
            ⁢
            
              
                
                  X
                  
                    (
                    2
                    )
                  
                
                ⁡
                
                  (
                  
                    t
                    +
                    τ
                  
                  )
                
              
              ⁢
              
                
                  ψ
                  ′
                
                ⁡
                
                  (
                  t
                  )
                
              
            
          
          ⁢
          
            |
            
              α
              j
            
            
              α
              
                j
                +
                1
              
            
          
        
        =
        
        ⁢
        
          
            
              
                ∑
                
                  j
                  =
                  0
                
                
                  J
                  -
                  1
                
              
              ⁢
              
                (
                
                  
                    
                      X
                      
                        (
                        2
                        )
                      
                    
                    ⁡
                    
                      (
                      
                        t
                        +
                        τ
                      
                      )
                    
                  
                  ⁢
                  
                    (
                    
                      
                        2
                        ⁢
                        
                          p
                          j
                        
                        ⁢
                        t
                      
                      +
                      
                        q
                        j
                      
                    
                    )
                  
                
                )
              
            
            ⁢
            
              |
              
                α
                j
              
              
                α
                
                  j
                  +
                  1
                
              
            
          
          =
        
      
    
  
  
    
      
        =
        
        ⁢
        
          
            ∑
            
              j
              =
              1
            
            
              J
              -
              1
            
          
          ⁢
          
            (
            
              
                
                  (
                  
                    
                      
                        
                          
                            2
                            ⁢
                            
                              
                                α
                                j
                              
                              ⁡
                              
                                (
                                
                                  
                                    p
                                    
                                      j
                                      -
                                      1
                                    
                                  
                                  -
                                  
                                    p
                                    j
                                  
                                
                                )
                              
                            
                          
                          +
                        
                      
                    
                    
                      
                        
                          
                            q
                            
                              j
                              -
                              1
                            
                          
                          -
                          
                            q
                            j
                          
                        
                      
                    
                  
                  )
                
                ⁢
                
                  
                    X
                    
                      (
                      2
                      )
                    
                  
                  ⁡
                  
                    (
                    
                      
                        a
                        j
                      
                      +
                      τ
                    
                    )
                  
                
              
              +
              -
            
          
        
      
    
  
  
    
      
        
        ⁢
        
          
            
              (
              
                
                  2
                  ⁢
                  
                    p
                    0
                  
                  ⁢
                  
                    α
                    0
                  
                
                +
                
                  q
                  0
                
              
              )
            
            ⁢
            
              
                X
                
                  (
                  2
                  )
                
              
              ⁡
              
                (
                
                  
                    α
                    0
                  
                  +
                  τ
                
                )
              
            
          
          +
        
      
    
  
  
    
      
        
        ⁢
        
          
            (
            
              
                2
                ⁢
                
                  p
                  
                    J
                    -
                    1
                  
                
                ⁢
                
                  α
                  J
                
              
              +
              
                q
                
                  J
                  -
                  1
                
              
            
            )
          
          ⁢
          
            
              
                X
                
                  (
                  2
                  )
                
              
              ⁡
              
                (
                
                  
                    α
                    J
                  
                  +
                  τ
                
                )
              
            
            .
          
        
      
    
  




The coefficient of wavelet W(τ) is therefore given by:




  
    
      
        
          
            W
            ⁡
            
              (
              τ
              )
            
          
          =
          
            
              
                ∑
                
                  i
                  =
                  0
                
                J
              
              ⁢
              
                
                  B
                  i
                
                ⁢
                
                  
                    X
                    
                      (
                      3
                      )
                    
                  
                  ⁡
                  
                    (
                    
                      τ
                      +
                      
                        α
                        i
                      
                    
                    )
                  
                
              
            
            +
            
              
                (
                
                  -
                  1
                
                )
              
              ⁢
              
                
                  ∑
                  
                    i
                    =
                    0
                  
                  J
                
                ⁢
                
                  
                    C
                    i
                  
                  ⁢
                  
                    
                      X
                      
                        (
                        2
                        )
                      
                    
                    ⁡
                    
                      (
                      
                        
                          α
                          i
                        
                        +
                        τ
                      
                      )
                    
                  
                
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          with
          ⁢
          
            :
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              B
              i
            
            =
            
              2
              ⁢
              
                (
                
                  
                    p
                    
                      i
                      -
                      1
                    
                  
                  -
                  
                    p
                    i
                  
                
                )
              
            
          
          ,
          
            i
            =
            1
          
          ,
          ...
          ⁢
          
            
          
          ,
          
            
              J
              -
              1
            
            ;
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              B
              0
            
            =
            
              
                -
                2
              
              ⁢
              
                p
                0
              
            
          
          ;
        
        ⁢
        
          

        
        ⁢
        
          
            
              B
              J
            
            =
            
              2
              ⁢
              
                p
                J
              
            
          
          ;
        
        ⁢
        
          

        
        ⁢
        
          
            
              C
              i
            
            =
            
              
                2
                ⁢
                
                  
                    α
                    i
                  
                  ⁡
                  
                    (
                    
                      
                        p
                        
                          i
                          -
                          1
                        
                      
                      -
                      
                        p
                        j
                      
                    
                    )
                  
                
              
              +
              
                q
                
                  i
                  -
                  1
                
              
              -
              
                q
                i
              
            
          
          ,
          
            i
            =
            1
          
          ,
          ...
          ⁢
          
            
          
          ,
          
            
              J
              -
              1
            
            ;
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              C
              0
            
            =
            
              -
              
                (
                
                  
                    2
                    ⁢
                    
                      p
                      0
                    
                    ⁢
                    
                      α
                      0
                    
                  
                  +
                  
                    q
                    0
                  
                
                )
              
            
          
          ;
        
        ⁢
        
          

        
        ⁢
        
          
            C
            J
          
          =
          
            
              2
              ⁢
              
                p
                
                  J
                  -
                  1
                
              
              ⁢
              
                α
                J
              
            
            +
            
              
                q
                
                  J
                  -
                  1
                
              
              .
            
          
        
      
    
    
      
        (
        9
        )
      
    
  




In this case, the determination of a wavelet coefficient requires 2(J+1) sums and multiplications.
Equation (9) can be generalized to the case of any order of polynomial N. In this case, the mother wavelet ψ(t) can be expressed by:




  
    ψ
    ⁡
    
      (
      t
      )
    
  
  =
  
    {
    
      
        
          
            
              
                
                  
                    
                      ψ
                      j
                    
                    ⁡
                    
                      (
                      t
                      )
                    
                  
                  ,
                
              
              
                
                  t
                  ∈
                  
                    [
                    
                      
                        α
                        j
                      
                      ,
                      
                        α
                        
                          j
                          +
                          1
                        
                      
                    
                    ]
                  
                
              
            
            
              
                
                  0
                  ,
                
              
              
                
                  
                    
                    t
                    
                  
                  ≥
                  a
                
              
            
          
          ⁢
          
            

          
          ⁢
          with
          ⁢
          
            
          
          ⁢
          
            
              ψ
              j
            
            ⁡
            
              (
              t
              )
            
          
        
        =
        
          
            
              p
              j
              N
            
            ⁢
            
              t
              N
            
          
          +
          
            
              p
              j
              
                N
                -
                1
              
            
            ⁢
            
              t
              
                N
                -
                1
              
            
          
          +
          
            ...
            ⁢
            
              
            
            ⁢
            
              p
              j
              0
            
          
        
      
      ,
    
  




ψ(t) furthermore being a continuous function and such that ψ(−α)=ψ(α0)=ψ(αJ)=ψ(α)=0.

By integrating (3) by parts (N+1) times, we obtain:




  
    
      
        
          
            W
            ⁡
            
              (
              τ
              )
            
          
          =
          
            
              
                ∑
                
                  k
                  =
                  2
                
              
              
                N
                +
                1
              
            
            ⁢
            
              
                ∑
                
                  i
                  =
                  0
                
                J
              
              ⁢
              
                
                  
                    (
                    
                      -
                      1
                    
                    )
                  
                  
                    k
                    -
                    1
                  
                
                ⁢
                
                  C
                  i
                  k
                
                ⁢
                
                  
                    X
                    
                      (
                      k
                      )
                    
                  
                  ⁡
                  
                    (
                    
                      τ
                      +
                      
                        α
                        i
                      
                    
                    )
                  
                
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          with
          ⁢
          
            :
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              C
              i
              k
            
            =
            
              
                
                  ψ
                  
                    i
                    -
                    1
                  
                  
                    (
                    
                      k
                      -
                      1
                    
                    )
                  
                
                ⁡
                
                  (
                  
                    α
                    i
                  
                  )
                
              
              -
              
                
                  ψ
                  i
                  
                    (
                    
                      k
                      -
                      1
                    
                    )
                  
                
                ⁡
                
                  (
                  
                    α
                    i
                  
                  )
                
              
            
          
          ,
          
            i
            =
            1
          
          ,
          ...
          ⁢
          
            
          
          ,
          
            J
            -
            1
          
          ,
          
            

          
          ⁢
          
            
              C
              0
              k
            
            =
            
              -
              
                
                  ψ
                  0
                  
                    (
                    
                      k
                      -
                      1
                    
                    )
                  
                
                ⁡
                
                  (
                  
                    α
                    0
                  
                  )
                
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            C
            J
            k
          
          =
          
            
              ψ
              J
              
                (
                
                  k
                  -
                  1
                
                )
              
            
            ⁡
            
              (
              
                α
                J
              
              )
            
          
        
      
    
    
      
        (
        10
        )
      
    
  




Equation (10) shows that in general, the number of operations needed to determine a wavelet coefficient is proportional to the order N of the polynomials. However, this is not true if ψ(t) is chosen such that its derivatives are continuous, since several of the coefficients Cik cancel each other out in this case. In the case of a piecewise polynomial function of order N, continuous and all of whose derivatives up to the order (N−1) are continuous, equation (10) is simplified as follows:




  
    
      
        
          
            W
            ⁡
            
              (
              τ
              )
            
          
          =
          
            
              
                (
                
                  -
                  1
                
                )
              
              N
            
            ⁢
            
              
                ∑
                
                  i
                  =
                  0
                
                J
              
              ⁢
              
                
                  C
                  i
                  
                    (
                    
                      N
                      +
                      1
                    
                    )
                  
                
                ⁢
                
                  
                    X
                    
                      (
                      
                        N
                        +
                        1
                      
                      )
                    
                  
                  ⁡
                  
                    (
                    
                      τ
                      +
                      
                        α
                        i
                      
                    
                    )
                  
                
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              C
              i
              
                (
                
                  N
                  +
                  1
                
                )
              
            
            =
            
              
                N
                !
              
              ⁢
              
                (
                
                  
                    p
                    
                      i
                      -
                      1
                    
                    N
                  
                  -
                  
                    p
                    i
                    N
                  
                
                )
              
            
          
          ,
          
            i
            =
            1
          
          ,
          ...
          ⁢
          
            
          
          ,
          
            J
            -
            1
          
        
        ⁢
        
          

        
        ⁢
        
          
            C
            0
            
              (
              
                N
                +
                1
              
              )
            
          
          =
          
            
              -
              
                N
                !
              
            
            ⁢
            
              p
              0
              N
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            C
            J
            
              (
              
                N
                +
                1
              
              )
            
          
          =
          
            
              N
              !
            
            ⁢
            
              p
              J
              N
            
          
        
      
    
    
      
        (
        11
        )
      
    
  




In this case, the computational cost does not depend on order N, and only the primitive of order (N+1) must be calculated. Consequently, in order to minimize the computational cost, it is necessary to use low-order polynomials and/or mother wavelets having continuous derivatives.
Until now, we have limited ourselves to the case of a constant scale factor s, conventionally taken to be 1. It is possible from now on to relax this assumption and to consider a wavelet




  
    
      
        ψ
        s
      
      ⁡
      
        (
        t
        )
      
    
    =
    
      
        1
        
          s
        
      
      ⁢
      
        
          ψ
          1
        
        ⁡
        
          (
          
            t
            s
          
          )
        
      
    
  
  ,




which is continuous, defined on the interval





  [
  
    
      -
      
        α
        s
      
    
    ,
    
      α
      s
    
  
  ]




with the partition





  
    
      -
      
        α
        s
      
    
    =
    
      
        
          
            α
            0
          
          s
        
        <
        
          
            α
            1
          
          s
        
        <
        ...
        <
        
          
            α
            J
          
          s
        
      
      =
      
        α
        s
      
    
  
  ,




piecewise polynomial, and whose expression is





  
    
      ψ
      s
    
    ⁡
    
      (
      t
      )
    
  
  =
  
    {
    
      
        
          
            
              
                
                  ψ
                  j
                  s
                
                ⁡
                
                  (
                  t
                  )
                
              
              ,
            
          
          
            
              t
              ∈
              
                [
                
                  
                    
                      α
                      j
                    
                    s
                  
                  ,
                  
                    
                      α
                      
                        j
                        +
                        1
                      
                    
                    s
                  
                
                ]
              
            
          
        
        
          
            
              0
              ,
            
          
          
            
              
                
                t
                
              
              ≥
              
                α
                s
              
            
          
        
      
      ,
      
        with
        ⁢
        
          

        
        ⁢
        
          
            
              
                
                  
                    ψ
                    j
                    S
                  
                  ⁡
                  
                    (
                    t
                    )
                  
                
                =
                
                ⁢
                
                  
                    
                      
                        (
                        
                          p
                          j
                          N
                        
                        )
                      
                      S
                    
                    ⁢
                    
                      t
                      N
                    
                  
                  +
                  
                    
                      
                        (
                        
                          p
                          j
                          
                            N
                            -
                            1
                          
                        
                        )
                      
                      S
                    
                    ⁢
                    
                      t
                      
                        N
                        -
                        1
                      
                    
                  
                  +
                  ...
                  +
                  
                    
                      
                        (
                        
                          p
                          j
                          
                            0
                            ⁢
                            
                              
                            
                          
                        
                        )
                      
                      S
                    
                    ⁢
                    
                      
                    
                    ⁢
                    and
                    ⁢
                    
                      
                    
                    ⁢
                    
                      
                        (
                        
                          p
                          j
                          i
                        
                        )
                      
                      S
                    
                  
                
              
            
          
          
            
              
                =
                
                ⁢
                
                  
                    1
                    
                      s
                    
                  
                  ⁢
                  
                    1
                    
                      s
                      i
                    
                  
                  ⁢
                  
                    
                      
                        (
                        
                          p
                          j
                          i
                        
                        )
                      
                      1
                    
                    .
                  
                
              
            
          
        
      
    
  




In this general case, the wavelet coefficient Ws(τ) can be determined by applying the equation:




  
    
      
        
          
            
              W
              s
            
            ⁡
            
              (
              τ
              )
            
          
          =
          
            
              ∑
              
                k
                =
                2
              
              
                N
                +
                1
              
            
            ⁢
            
              
                ∑
                
                  i
                  =
                  0
                
                J
              
              ⁢
              
                
                  
                    (
                    
                      -
                      1
                    
                    )
                  
                  
                    k
                    -
                    1
                  
                
                ⁢
                
                  
                    C
                    i
                    k
                  
                  ⁡
                  
                    (
                    s
                    )
                  
                
                ⁢
                
                  
                    X
                    
                      (
                      k
                      )
                    
                  
                  ⁡
                  
                    (
                    
                      τ
                      +
                      
                        
                          α
                          i
                        
                        s
                      
                    
                    )
                  
                
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          with
          ⁢
          
            :
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              
                C
                i
                k
              
              ⁡
              
                (
                s
                )
              
            
            =
            
              
                
                  
                    (
                    
                      ψ
                      
                        i
                        -
                        1
                      
                      S
                    
                    )
                  
                  
                    (
                    
                      k
                      -
                      1
                    
                    )
                  
                
                ⁢
                
                  (
                  
                    
                      α
                      i
                    
                    s
                  
                  )
                
              
              -
              
                
                  
                    (
                    
                      ψ
                      i
                      s
                    
                    )
                  
                  
                    (
                    
                      k
                      -
                      1
                    
                    )
                  
                
                ⁢
                
                  (
                  
                    
                      α
                      i
                    
                    s
                  
                  )
                
              
            
          
          ,
          
            

          
          ⁢
          
            i
            =
            1
          
          ,
          ...
          ⁢
          
            
          
          ,
          
            J
            -
            1
          
          ,
          
            

          
          ⁢
          
            
              
                
                  C
                  0
                  k
                
                ⁡
                
                  (
                  s
                  )
                
              
              =
              
                
                  -
                  
                    
                      (
                      
                        ψ
                        0
                        S
                      
                      )
                    
                    
                      (
                      
                        k
                        -
                        1
                      
                      )
                    
                  
                
                ⁢
                
                  (
                  
                    
                      α
                      0
                    
                    s
                  
                  )
                
              
            
            ;
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              C
              J
              k
            
            ⁡
            
              (
              s
              )
            
          
          =
          
            
              
                (
                
                  ψ
                  J
                  S
                
                )
              
              
                (
                
                  k
                  -
                  1
                
                )
              
            
            ⁢
            
              
                (
                
                  
                    α
                    J
                  
                  s
                
                )
              
              .
            
          
        
      
    
    
      
        (
        12
        )
      
    
  




It should be noted that the coefficients Cik depend solely on the mother wavelet ψ(t), and can therefore be calculated once and for all, even before the acquisition of signal x(t). The calculation of these coefficients does not therefore add to the processing time, and its computational cost is negligible.
In the particular case of a mother wavelet made up of order two polynomials, ψ1(τ)=pjt2+qjt+rj and, presenting a first continuous derivative, we obtain:




  
    
      
        
          
            W
            ⁡
            
              (
              τ
              )
            
          
          =
          
            
              ∑
              
                i
                =
                0
              
              J
            
            ⁢
            
              
                B
                i
              
              ⁢
              
                
                  X
                  
                    (
                    3
                    )
                  
                
                ⁡
                
                  (
                  
                    τ
                    +
                    
                      
                        α
                        i
                      
                      s
                    
                  
                  )
                
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          with
          ⁢
          
            :
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              B
              i
            
            =
            
              2
              ⁢
              
                1
                
                  s
                
              
              ⁢
              
                1
                
                  s
                  2
                
              
              ⁢
              
                (
                
                  
                    p
                    
                      i
                      -
                      1
                    
                  
                  -
                  
                    p
                    i
                  
                
                )
              
            
          
          ,
          
            i
            =
            1
          
          ,
          ...
          ⁢
          
            
          
          ,
          
            
              J
              -
              1
            
            ;
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              B
              0
            
            =
            
              
                -
                2
              
              ⁢
              
                1
                
                  s
                
              
              ⁢
              
                1
                
                  s
                  2
                
              
              ⁢
              
                p
                0
              
            
          
          ;
        
        ⁢
        
          

        
        ⁢
        
          
            B
            J
          
          =
          
            
              1
              
                s
              
            
            ⁢
            
              1
              
                s
                2
              
            
            ⁢
            2
            ⁢
            
              
                p
                J
              
              .
            
          
        
      
    
    
      
        (
        13
        )
      
    
  




Different approaches may be made for calculating primitives X(1), . . . , X(k), . . . X(N+1).
In general, the signal x(t) is in reality a discrete signal, or a continuous signal sampled at discrete instants: x(t)→x(i)=xi, i= . . . -1, 0, 1, 2, . . . . In order to calculate the primitives, it is possible in particular to use the approximation of the piecewise constant signal as a basis: x(t)=xi, tε[i,i+1].
One notes that i is the value rounded to a lower integer of time t (with an appropriate timescale) t:i=└t┘. One can therefore write t=i+Δ, Δ=t−i≦1.
Hence:



  
    
      
        
          X
          
            (
            1
            )
          
        
        ⁡
        
          (
          
            i
            +
            Δ
          
          )
        
      
      =
      
        
          
            
              X
              
                (
                1
                )
              
            
            ⁡
            
              (
              i
              )
            
          
          +
          
            
              ∫
              i
              
                i
                +
                Δ
              
            
            ⁢
            
              
                x
                i
              
              ⁢
              
                
              
              ⁢
              
                d
                t
              
            
          
        
        =
        
          
            
              X
              
                (
                1
                )
              
            
            ⁡
            
              (
              i
              )
            
          
          +
          
            
              x
              i
            
            ⁢
            Δ
          
        
      
    
    ;
  




  
    
      
        
          
            
              X
              
                (
                2
                )
              
            
            ⁡
            
              (
              
                i
                +
                Δ
              
              )
            
          
          =
          
          ⁢
          
            
              
                X
                
                  (
                  2
                  )
                
              
              ⁡
              
                (
                i
                )
              
            
            +
            
              
                ∫
                i
                
                  i
                  +
                  Δ
                
              
              ⁢
              
                
                  
                    X
                    
                      (
                      1
                      )
                    
                  
                  ⁡
                  
                    (
                    
                      i
                      +
                      Δ
                    
                    )
                  
                
                ⁢
                
                  d
                  t
                
              
            
          
        
      
    
    
      
        
          
            =
            
            ⁢
            
              
                
                  X
                  
                    (
                    2
                    )
                  
                
                ⁡
                
                  (
                  i
                  )
                
              
              +
              
                
                  
                    X
                    
                      (
                      1
                      )
                    
                  
                  ⁡
                  
                    (
                    i
                    )
                  
                
                ⁢
                Δ
              
              +
              
                
                  x
                  i
                
                ⁢
                
                  
                    Δ
                    2
                  
                  2
                
              
            
          
          ;
        
      
    
  




  
    
      
        X
        
          (
          3
          )
        
      
      ⁡
      
        (
        
          i
          +
          Δ
        
        )
      
    
    =
    
      
        
          X
          
            (
            3
            )
          
        
        ⁡
        
          (
          i
          )
        
      
      +
      
        
          
            X
            
              (
              2
              )
            
          
          ⁡
          
            (
            i
            )
          
        
        ⁢
        Δ
      
      +
      
        
          
            X
            
              (
              1
              )
            
          
          ⁡
          
            (
            i
            )
          
        
        ⁢
        
          
            Δ
            2
          
          2
        
      
      +
      
        
          x
          i
        
        ⁢
        
          
            Δ
            3
          
          6
        
      
    
  



and so on.

One will note that the primitives are defined to a nearest integration constant. In the above equations, we implicitly accepted X(3)(0)=0 X(2)(0)=0 X(1)(0)=0, which allows said integration constants to be fixed.
If we are only interested in integer values of time t, we can put forward Δ=1, which gives:




  
    
      
        
          
            
              
                X
                
                  (
                  1
                  )
                
              
              ⁡
              
                (
                
                  i
                  +
                  1
                
                )
              
            
            =
            
              
                
                  X
                  
                    (
                    1
                    )
                  
                
                ⁡
                
                  (
                  i
                  )
                
              
              +
              
                x
                i
              
            
          
          ;
        
        ⁢
        
          

        
        ⁢
        
          
            
              
                X
                
                  (
                  2
                  )
                
              
              ⁡
              
                (
                
                  i
                  +
                  1
                
                )
              
            
            =
            
              
                
                  X
                  
                    (
                    2
                    )
                  
                
                ⁡
                
                  (
                  i
                  )
                
              
              +
              
                
                  X
                  
                    (
                    1
                    )
                  
                
                ⁡
                
                  (
                  i
                  )
                
              
              +
              
                
                  x
                  i
                
                2
              
            
          
          ;
        
        ⁢
        
          

        
        ⁢
        
          
            
              X
              
                (
                3
                )
              
            
            ⁡
            
              (
              
                i
                +
                1
              
              )
            
          
          =
          
            
              
                X
                
                  (
                  3
                  )
                
              
              ⁡
              
                (
                i
                )
              
            
            +
            
              
                X
                
                  (
                  2
                  )
                
              
              ⁡
              
                (
                i
                )
              
            
            +
            
              
                
                  X
                  
                    (
                    1
                    )
                  
                
                ⁡
                
                  (
                  i
                  )
                
              
              2
            
            +
            
              
                x
                i
              
              6
            
          
        
      
    
    
      
        (
        14
        )
      
    
  




and so on.

It is easy to understand that equations (14) make it possible to calculate the primitives by cumulative sums “during the process”, in other words, during the time the samples of the signal x(t) are being acquired. This means that the calculation of the primitives does not increase the processing time, which is very advantageous in real time applications. Equations (14) were obtained on the basis of the approximation of the piecewise constant signal; similar equations can be obtained using a different interpolation, for example, a linear interpolation.
It should be noted that equations (14) give the values of the primitives of x(i) for all times i. However, the determination of the wavelet coefficients Ws(τ) only requires their values at times




  τ
  +
  
    
      α
      i
    
    s
  




(see equation 12). In other words, the primitives calculated by means of equations (14) must be sampled at (J+1) sampling points corresponding to said extremity points of the intervals on the support of the wavelet ψs(t−τ) obtained by dilating the mother wavelet ψ(t) by a factor of s and by translating it by a time τ. Only these samples are used to determine Ws(τ).

The different steps of the method we have just described are illustrated by FIG. 1. From left to right, one can see that, while the signal x(t) is being acquired—and when applicable, sampled, quantified and converted to digital format—block UCP calculates its primitives X(2)(t), X(3)(t) . . . X(k)(t) . . . X(N+1)(t) “during the process”, for all of the values (that can be assumed to be discrete) of t. The blocks E2 . . . Ek . . . EN+1 then sample these primitives at times




  τ
  +
  
    
      
        α
        i
      
      s
    
    .
  




The primitives, sampled in this way, are convoluted in blocks UCC2 . . . UCCk . . . UCCN+1 with the successions formed by the coefficients C2(s), Ci3(s) . . . Cik(s) . . . CiN+1(s) extracted from a memory MC—which corresponds, in equation (12), to the sum in relation to index J. The results of these convolutions are then linearly combined in an adder block UCL with a sign (−1)k−1, in other words alternating between + or −, which corresponds, in equation 12, to the sum in relation to index k.

It should be noted that blocks UCP, Ek, UCCk et UCL are functional blocks, which do not necessarily correspond to physical structures of a processor used to implement the method.
FIG. 2 illustrates the application of such a method to the wavelet transform in real time of a signal x(t), namely to the determination of the coefficients Ws(τ) for a plurality of values of s=s1, s2 . . . and τ=τ1, τ2 . . . .
The block UCP calculates the primitives X(k)(t) during the process as cumulative sums of the samples of the signal x(t). The primitives calculated in this way are saved to the memory MP, which is preferably a mobile memory. At the same time, the previously calculated values of the primitives corresponding to the times




  τ
  +
  
    
      α
      i
    
    s
  




are read from said memory MP and addressed to a calculation unit UCCL. The coefficients Cik(s) are also read from a second memory MC and addressed in turn to the unit UCCL. The latter determines the wavelet coefficients Ws(τ) as soon as this is possible. In fact, equation (12) shows that, in order to determine WS(τ), it is necessary to know the primitives X(k) only in the interval





  
    [
    
      τ
      ±
      
        α
        s
      
    
    ]
  
  .




Consequently, at each instant t, it is possible to determine





  
    
      W
      S
    
    ⁡
    
      (
      τ
      )
    
  
  ⁢
  
    ∀
    
      τ
      ≤
      
        t
        -
        
          
            α
            s
          
          .
        
      
    
  




The wavelet transform can therefore be performed in real time, with a time delay equal to α+TP relative to the signal, Tp being a delay due to the processing time.

Once again, the blocks UCP, MP, MC, UCCL must be considered as functional blocks, which do not necessarily correspond to physical structures of a processor used to implement the method.

## Claims

1. A method for determining at least one wavelet coefficient Ws(τ) of a wavelet transform of a signal obtained by sampling and quantifying an analog signal representative of a physical quantity, said wavelet transform being defined in relation to a mother wavelet, wherein:
said mother wavelet is a continuous function, having a support subdivided into J≧1 intervals bound by (J+1) extremity points, said function being defined by a polynomial of a maximum level N≧1 on each said interval;
and wherein said method includes the steps consisting in:
a) calculating all or some of the primitives of said signal of order k comprised between 2 and N+1, at least at (J+1) points corresponding to said extremity points of the intervals of the wavelet support dilated by a factor of s and translated by a time τ;
b) calculating the convolution of said or each said primitive sampled in this way with a respective succession of (J+1) coefficients Cik(s), dependent upon said wavelet; and
c) determining said wavelet coefficient by calculating a linear combination of said convolutions;
said steps a) to c) being implemented by a processor configured or programmed in an appropriate manner in a neuronal control or brain-computer interface system.

2. The method as claimed in claim 1, in which said coefficients Cik(s) are dependent upon the discontinuities of the derivatives of orders between 1 and N of the wavelet corresponding to said extremity points of the intervals constituting its support.

3. The method as claimed in claim 2, in which steps b) and c) are implemented by applying the following equation:




  
    
      W
      s
    
    ⁡
    
      (
      τ
      )
    
  
  =
  
    
      
        ∑
        
          k
          =
          2
        
      
      
        N
        +
        1
      
    
    ⁢
    
      
        ∑
        
          i
          =
          0
        
        J
      
      ⁢
      
        
          
            (
            
              -
              1
            
            )
          
          
            k
            -
            1
          
        
        ⁢
        
          
            C
            i
            k
          
          ⁡
          
            (
            s
            )
          
        
        ⁢
        
          
            X
            
              (
              k
              )
            
          
          ⁡
          
            (
            
              τ
              +
              
                
                  α
                  i
                
                s
              
            
            )
          
        
      
    
  



where:
Ws(τ) is the desired wavelet coefficient, corresponding to a time delay τ and to a dilatation s of a mother wavelet ψ(t);
X(k)(t) is the order k primitive of the signal;
αi are the extremity points of the intervals constituting the support of the mother wavelet, taken in order; and
Cik(s), with i between 0 and J, are the coefficients forming the succession with which the order k primitive of the signal is convoluted.

4. The method as claimed in claim 3 in which the coefficients Cik(s) are given by:



  
    
      
        
          C
          i
          k
        
        ⁡
        
          (
          s
          )
        
      
      =
      
        
          
            
              (
              
                ψ
                
                  i
                  -
                  1
                
                S
              
              )
            
            
              (
              
                k
                -
                1
              
              )
            
          
          ⁢
          
            (
            
              
                α
                i
              
              s
            
            )
          
        
        -
        
          
            
              (
              
                ψ
                i
                s
              
              )
            
            
              (
              
                k
                -
                1
              
              )
            
          
          ⁢
          
            (
            
              
                α
                i
              
              s
            
            )
          
        
      
    
    ,
    
      

    
    ⁢
    
      i
      =
      1
    
    ,
    ...
    ⁢
    
      
    
    ,
    
      J
      -
      1
    
  




  
    
      
        C
        0
        k
      
      ⁡
      
        (
        s
        )
      
    
    =
    
      
        -
        
          
            (
            
              ψ
              0
              S
            
            )
          
          
            (
            
              k
              -
              1
            
            )
          
        
      
      ⁢
      
        (
        
          
            α
            0
          
          s
        
        )
      
    
  




  
    
      
        C
        J
        k
      
      ⁡
      
        (
        s
        )
      
    
    =
    
      
        
          (
          
            ψ
            J
            S
          
          )
        
        
          (
          
            k
            -
            1
          
          )
        
      
      ⁢
      
        (
        
          
            α
            J
          
          s
        
        )
      
    
  


where (ψis)(k-1) is the derivative of order (k−1) of the function





  
    
      ψ
      i
      s
    
    =
    
      
        
          ψ
          i
          s
        
        ⁡
        
          (
          t
          )
        
      
      =
      
        
          1
          
            s
          
        
        ⁢
        
          
            ψ
            i
          
          ⁡
          
            (
            
              t
              s
            
            )
          
        
      
    
  
  ,




ψi being the polynomial that defines the mother wavelet on the ith interval of its support.

5. The method as claimed in claim 1, in which said wavelet is a continuous function and has a first continuous derivative, piecewise polynomial of order of two, in which said step a) consists in calculating only the primitive of order 3 of said signal and in which steps b) and c) are implemented by applying the following equation:



  
    
      W
      ⁡
      
        (
        τ
        )
      
    
    =
    
      
        ∑
        
          i
          =
          0
        
        J
      
      ⁢
      
        
          B
          i
        
        ⁢
        
          
            X
            
              (
              3
              )
            
          
          ⁡
          
            (
            
              τ
              +
              
                
                  α
                  i
                
                s
              
            
            )
          
        
      
    
  




  
    where
    ⁢
    
      :
    
  




  
    
      
        B
        i
      
      =
      
        2
        ⁢
        
          1
          
            s
          
        
        ⁢
        
          1
          
            s
            2
          
        
        ⁢
        
          (
          
            
              p
              
                i
                -
                1
              
            
            -
            
              p
              i
            
          
          )
        
      
    
    ,
    
      i
      =
      1
    
    ,
    ...
    ⁢
    
      
    
    ,
    
      
        J
        -
        1
      
      ;
    
  




  
    
      
        B
        0
      
      =
      
        
          -
          2
        
        ⁢
        
          1
          
            s
          
        
        ⁢
        
          1
          
            s
            2
          
        
        ⁢
        
          p
          0
        
      
    
    ;
  




  
    
      B
      J
    
    =
    
      
        1
        
          s
        
      
      ⁢
      
        1
        
          s
          2
        
      
      ⁢
      2
      ⁢
      
        
          p
          J
        
        .

6. The method as claimed in claim 1, in which said step a) includes:
a1) calculation of said order k primitives between 2 and N+1 of said signal; and
a2) their sampling at (J+1) sampling points corresponding to said extremity points of the intervals on the wavelet support dilated by a factor of s and translated by a time τ.

7. The method as claimed in claim 1, in which said step a) is implemented in real time, said primitives being calculated as cumulative sums during an acquisition step of said signal, then saved to a first memory (MP) of said processor.

8. The method as claimed in claim 7, in which said successions of coefficients Cik(s) are saved to a second memory (MC) of said processor prior to said acquisition step of said signal.

9. A method for wavelet transform of a signal in discrete or discretized time, comprising the determination of a plurality of wavelet coefficients associated with different dilatations/translations of a single mother wavelet, wherein each said wavelet coefficient is determined by a method as claimed in claim 1.

10. A method for wavelet transform of a signal comprising the determination of a plurality of wavelet coefficients associated with different dilatations/translations of a single mother wavelet, wherein each wavelet coefficient Ws(τ), corresponding to a time delay τ and to a dilatation s of a mother wavelet ψ(t), is determined by a method as claimed in claim 1, in which:
said step a) is implemented in real time, said primitives being calculated as cumulative sums during an acquisition step of said signal, then saved to a first memory (MP) of said processor;
said steps b) and c) are implemented in real time, using successions of coefficients saved beforehand to a second memory (MC) of said processor;
the wavelet coefficients Ws(τ), corresponding to a time delay τ and to a dilatation s of a mother wavelet ψ(t), being determined from the time t=τ+α/s, where α is half the width of the support of said mother wavelet.

11. The method as claimed in claim 1, in which said signal is a digital signal.

12. The method as claimed in claim 1, in which the signal is a signal acquired by a detector.

13. A processor configured or programmed to implement a method as claimed in claim 1.