Module wavelet.wavelets.db12

Daubechies 12 wavelet

Expand source code
""" Daubechies 12 wavelet """


class Daubechies12:
    """
    Properties
    ----------
    asymmetric, orthogonal, bi-orthogonal

    All values are from http://wavelets.pybytes.com/wavelet/db12/
    """
    __name__ = "Daubechies Wavelet 12"
    __motherWaveletLength__ = 24  # length of the mother wavelet
    __transformWaveletLength__ = 2  # minimum wavelength of input signal

    # decomposition filter
    # low-pass
    decompositionLowFilter = [
        -1.5290717580684923e-06,
        1.2776952219379579e-05,
        - 2.4241545757030318e-05,
        - 8.850410920820318e-05,
        0.0003886530628209267,
        6.5451282125215034e-06,
        - 0.0021795036186277044,
        0.0022486072409952287,
        0.006711499008795549,
        - 0.012840825198299882,
        - 0.01221864906974642,
        0.04154627749508764,
        0.010849130255828966,
        - 0.09643212009649671,
        0.0053595696743599965,
        0.18247860592758275,
        - 0.023779257256064865,
        - 0.31617845375277914,
        - 0.04476388565377762,
        0.5158864784278007,
        0.6571987225792911,
        0.3773551352142041,
        0.10956627282118277,
        0.013112257957229239
    ]

    # high-pass
    decompositionHighFilter = [
        -0.013112257957229239,
        0.10956627282118277,
        - 0.3773551352142041,
        0.6571987225792911,
        - 0.5158864784278007,
        - 0.04476388565377762,
        0.31617845375277914,
        - 0.023779257256064865,
        - 0.18247860592758275,
        0.0053595696743599965,
        0.09643212009649671,
        0.010849130255828966,
        - 0.04154627749508764,
        - 0.01221864906974642,
        0.012840825198299882,
        0.006711499008795549,
        - 0.0022486072409952287,
        - 0.0021795036186277044,
        - 6.5451282125215034e-06,
        0.0003886530628209267,
        8.850410920820318e-05,
        - 2.4241545757030318e-05,
        - 1.2776952219379579e-05,
        - 1.5290717580684923e-06
    ]

    # reconstruction filters
    # low pass
    reconstructionLowFilter = [
        0.013112257957229239,
        0.10956627282118277,
        0.3773551352142041,
        0.6571987225792911,
        0.5158864784278007,
        - 0.04476388565377762,
        - 0.31617845375277914,
        - 0.023779257256064865,
        0.18247860592758275,
        0.0053595696743599965,
        - 0.09643212009649671,
        0.010849130255828966,
        0.04154627749508764,
        - 0.01221864906974642,
        - 0.012840825198299882,
        0.006711499008795549,
        0.0022486072409952287,
        - 0.0021795036186277044,
        6.5451282125215034e-06,
        0.0003886530628209267,
        - 8.850410920820318e-05,
        - 2.4241545757030318e-05,
        1.2776952219379579e-05,
        - 1.5290717580684923e-06
    ]

    # high-pass
    reconstructionHighFilter = [
        -1.5290717580684923e-06,
        - 1.2776952219379579e-05,
        - 2.4241545757030318e-05,
        8.850410920820318e-05,
        0.0003886530628209267,
        - 6.5451282125215034e-06,
        - 0.0021795036186277044,
        - 0.0022486072409952287,
        0.006711499008795549,
        0.012840825198299882,
        - 0.01221864906974642,
        - 0.04154627749508764,
        0.010849130255828966,
        0.09643212009649671,
        0.0053595696743599965,
        - 0.18247860592758275,
        - 0.023779257256064865,
        0.31617845375277914,
        - 0.04476388565377762,
        - 0.5158864784278007,
        0.6571987225792911,
        - 0.3773551352142041,
        0.10956627282118277,
        - 0.013112257957229239
    ]

Classes

class Daubechies12

Properties

asymmetric, orthogonal, bi-orthogonal

All values are from http://wavelets.pybytes.com/wavelet/db12/

Expand source code
class Daubechies12:
    """
    Properties
    ----------
    asymmetric, orthogonal, bi-orthogonal

    All values are from http://wavelets.pybytes.com/wavelet/db12/
    """
    __name__ = "Daubechies Wavelet 12"
    __motherWaveletLength__ = 24  # length of the mother wavelet
    __transformWaveletLength__ = 2  # minimum wavelength of input signal

    # decomposition filter
    # low-pass
    decompositionLowFilter = [
        -1.5290717580684923e-06,
        1.2776952219379579e-05,
        - 2.4241545757030318e-05,
        - 8.850410920820318e-05,
        0.0003886530628209267,
        6.5451282125215034e-06,
        - 0.0021795036186277044,
        0.0022486072409952287,
        0.006711499008795549,
        - 0.012840825198299882,
        - 0.01221864906974642,
        0.04154627749508764,
        0.010849130255828966,
        - 0.09643212009649671,
        0.0053595696743599965,
        0.18247860592758275,
        - 0.023779257256064865,
        - 0.31617845375277914,
        - 0.04476388565377762,
        0.5158864784278007,
        0.6571987225792911,
        0.3773551352142041,
        0.10956627282118277,
        0.013112257957229239
    ]

    # high-pass
    decompositionHighFilter = [
        -0.013112257957229239,
        0.10956627282118277,
        - 0.3773551352142041,
        0.6571987225792911,
        - 0.5158864784278007,
        - 0.04476388565377762,
        0.31617845375277914,
        - 0.023779257256064865,
        - 0.18247860592758275,
        0.0053595696743599965,
        0.09643212009649671,
        0.010849130255828966,
        - 0.04154627749508764,
        - 0.01221864906974642,
        0.012840825198299882,
        0.006711499008795549,
        - 0.0022486072409952287,
        - 0.0021795036186277044,
        - 6.5451282125215034e-06,
        0.0003886530628209267,
        8.850410920820318e-05,
        - 2.4241545757030318e-05,
        - 1.2776952219379579e-05,
        - 1.5290717580684923e-06
    ]

    # reconstruction filters
    # low pass
    reconstructionLowFilter = [
        0.013112257957229239,
        0.10956627282118277,
        0.3773551352142041,
        0.6571987225792911,
        0.5158864784278007,
        - 0.04476388565377762,
        - 0.31617845375277914,
        - 0.023779257256064865,
        0.18247860592758275,
        0.0053595696743599965,
        - 0.09643212009649671,
        0.010849130255828966,
        0.04154627749508764,
        - 0.01221864906974642,
        - 0.012840825198299882,
        0.006711499008795549,
        0.0022486072409952287,
        - 0.0021795036186277044,
        6.5451282125215034e-06,
        0.0003886530628209267,
        - 8.850410920820318e-05,
        - 2.4241545757030318e-05,
        1.2776952219379579e-05,
        - 1.5290717580684923e-06
    ]

    # high-pass
    reconstructionHighFilter = [
        -1.5290717580684923e-06,
        - 1.2776952219379579e-05,
        - 2.4241545757030318e-05,
        8.850410920820318e-05,
        0.0003886530628209267,
        - 6.5451282125215034e-06,
        - 0.0021795036186277044,
        - 0.0022486072409952287,
        0.006711499008795549,
        0.012840825198299882,
        - 0.01221864906974642,
        - 0.04154627749508764,
        0.010849130255828966,
        0.09643212009649671,
        0.0053595696743599965,
        - 0.18247860592758275,
        - 0.023779257256064865,
        0.31617845375277914,
        - 0.04476388565377762,
        - 0.5158864784278007,
        0.6571987225792911,
        - 0.3773551352142041,
        0.10956627282118277,
        - 0.013112257957229239
    ]

Class variables

var decompositionHighFilter
var decompositionLowFilter
var reconstructionHighFilter
var reconstructionLowFilter