Module wavelet.wavelets.coif2

Coiflets 2 wavelet

Expand source code
""" Coiflets 2 wavelet """


class Coiflets2:
    """
    Properties
    ----------
     near symmetric, orthogonal, biorthogonal

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

    # decomposition filter
    # low-pass
    decompositionLowFilter = [
        -0.0007205494453645122,
        -0.0018232088707029932,
        0.0056114348193944995,
        0.023680171946334084,
        -0.0594344186464569,
        -0.0764885990783064,
        0.41700518442169254,
        0.8127236354455423,
        0.3861100668211622,
        -0.06737255472196302,
        -0.04146493678175915,
        0.016387336463522112,
    ]

    # high-pass
    decompositionHighFilter = [
        -0.016387336463522112,
        -0.04146493678175915,
        0.06737255472196302,
        0.3861100668211622,
        -0.8127236354455423,
        0.41700518442169254,
        0.0764885990783064,
        -0.0594344186464569,
        -0.023680171946334084,
        0.0056114348193944995,
        0.0018232088707029932,
        -0.0007205494453645122,
    ]

    # reconstruction filters
    # low pass
    reconstructionLowFilter = [
        0.016387336463522112,
        -0.04146493678175915,
        -0.06737255472196302,
        0.3861100668211622,
        0.8127236354455423,
        0.41700518442169254,
        -0.0764885990783064,
        -0.0594344186464569,
        0.023680171946334084,
        0.0056114348193944995,
        -0.0018232088707029932,
        -0.0007205494453645122,
    ]

    # high-pass
    reconstructionHighFilter = [
        -0.0007205494453645122,
        0.0018232088707029932,
        0.0056114348193944995,
        -0.023680171946334084,
        -0.0594344186464569,
        0.0764885990783064,
        0.41700518442169254,
        -0.8127236354455423,
        0.3861100668211622,
        0.06737255472196302,
        -0.04146493678175915,
        -0.016387336463522112,
    ]

Classes

class Coiflets2

Properties

near symmetric, orthogonal, biorthogonal

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

Expand source code
class Coiflets2:
    """
    Properties
    ----------
     near symmetric, orthogonal, biorthogonal

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

    # decomposition filter
    # low-pass
    decompositionLowFilter = [
        -0.0007205494453645122,
        -0.0018232088707029932,
        0.0056114348193944995,
        0.023680171946334084,
        -0.0594344186464569,
        -0.0764885990783064,
        0.41700518442169254,
        0.8127236354455423,
        0.3861100668211622,
        -0.06737255472196302,
        -0.04146493678175915,
        0.016387336463522112,
    ]

    # high-pass
    decompositionHighFilter = [
        -0.016387336463522112,
        -0.04146493678175915,
        0.06737255472196302,
        0.3861100668211622,
        -0.8127236354455423,
        0.41700518442169254,
        0.0764885990783064,
        -0.0594344186464569,
        -0.023680171946334084,
        0.0056114348193944995,
        0.0018232088707029932,
        -0.0007205494453645122,
    ]

    # reconstruction filters
    # low pass
    reconstructionLowFilter = [
        0.016387336463522112,
        -0.04146493678175915,
        -0.06737255472196302,
        0.3861100668211622,
        0.8127236354455423,
        0.41700518442169254,
        -0.0764885990783064,
        -0.0594344186464569,
        0.023680171946334084,
        0.0056114348193944995,
        -0.0018232088707029932,
        -0.0007205494453645122,
    ]

    # high-pass
    reconstructionHighFilter = [
        -0.0007205494453645122,
        0.0018232088707029932,
        0.0056114348193944995,
        -0.023680171946334084,
        -0.0594344186464569,
        0.0764885990783064,
        0.41700518442169254,
        -0.8127236354455423,
        0.3861100668211622,
        0.06737255472196302,
        -0.04146493678175915,
        -0.016387336463522112,
    ]

Class variables

var decompositionHighFilter
var decompositionLowFilter
var reconstructionHighFilter
var reconstructionLowFilter