All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jwave.transforms.wavelets.biorthogonal.BiOrthogonal11 Maven / Gradle / Ivy

/**
 * JWave is distributed under the MIT License (MIT); this file is part of.
 *
 * Copyright (c) 2008-2015 Christian Scheiblich ([email protected])
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
package jwave.transforms.wavelets.biorthogonal;

/**
 * BiOrthogonal Wavelet of type 1.1 - One vanishing moment in wavelet function
 * and one vanishing moment in scaling function
 * 
 * @author Christian Scheiblich ([email protected])
 * @date 16.02.2014 10:15:11
 */
public class BiOrthogonal11 extends BiOrthogonal {

  /**
   * Already orthonormal coefficients taken from Filip Wasilewski's webpage
   * http://wavelets.pybytes.com/wavelet/bior1.1/ Thanks!
   * 
   * @author Christian Scheiblich ([email protected])
   * @date 16.02.2014 10:15:11
   */
  public BiOrthogonal11( ) {

    _name = "BiOrthogonal 1/1"; // name of the wavelet

    _transformWavelength = 2; // minimal wavelength of input signal

    _motherWavelength = 2; // wavelength of mother wavelet

    _scalingDeCom = new double[ _motherWavelength ];
    _scalingDeCom[ 0 ] = 0.7071067811865476; // s_d0
    _scalingDeCom[ 1 ] = 0.7071067811865476; // s_d1

    _waveletDeCom = new double[ _motherWavelength ];
    _waveletDeCom[ 0 ] = 0.7071067811865476; // w_d0
    _waveletDeCom[ 1 ] = -0.7071067811865476; // w_d1

    _scalingReCon = new double[ _motherWavelength ];
    _scalingReCon[ 0 ] = 0.7071067811865476; // w_r0 =  w_d1 .. biorthogonal!
    _scalingReCon[ 1 ] = 0.7071067811865476; // w_r1 = -w_d0 .. biorthogonal!

    _waveletReCon = new double[ _motherWavelength ];
    _waveletReCon[ 0 ] = 0.7071067811865476; // s_r0 =  s_d1 .. biorthogonal!
    _waveletReCon[ 1 ] = -0.7071067811865476; //s_r1 = -s_d0 .. biorthogonal!

  } // BiOrthogonal11

} // BiOrthogonal11




© 2015 - 2024 Weber Informatics LLC | Privacy Policy