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

jwave.transforms.wavelets.symlets.Symlet5 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.symlets;

import jwave.transforms.wavelets.Wavelet;

/**
 * Symlet5 filter: near symmetric, orthogonal (orthonormal), biorthogonal.
 * 
 * @author Christian Scheiblich ([email protected])
 * @date 17.08.2014 14:17:36
 */
public class Symlet5 extends Wavelet {

  /**
   * Already orthonormal coefficients taken from Filip Wasilewski's webpage
   * http://wavelets.pybytes.com/wavelet/sym5/ Thanks!
   * 
   * @author Christian Scheiblich ([email protected])
   * @date 17.08.2014 14:17:36
   */
  public Symlet5( ) {

    _name = "Symlet 5"; // name of the wavelet

    _transformWavelength = 2; // minimal wavelength of input signal

    _motherWavelength = 10; // wavelength of mother wavelet

    _scalingDeCom = new double[ _motherWavelength ];
    _scalingDeCom[ 0 ] = 0.027333068345077982;
    _scalingDeCom[ 1 ] = 0.029519490925774643;
    _scalingDeCom[ 2 ] = -0.039134249302383094;
    _scalingDeCom[ 3 ] = 0.1993975339773936;
    _scalingDeCom[ 4 ] = 0.7234076904024206;
    _scalingDeCom[ 5 ] = 0.6339789634582119;
    _scalingDeCom[ 6 ] = 0.01660210576452232;
    _scalingDeCom[ 7 ] = -0.17532808990845047;
    _scalingDeCom[ 8 ] = -0.021101834024758855;
    _scalingDeCom[ 9 ] = 0.019538882735286728;

    _buildOrthonormalSpace( );

  } // Symlet5

} // Symlet5




© 2015 - 2024 Weber Informatics LLC | Privacy Policy