Skip to content

How to add a new wavelet? #127

Open
Open

Description

@BenjaminDoran

Hi, I am experimenting with some custom wavelets in the vein of the Kingsbury qshift wavelets. How would I implement extending the package to include these wavelets?

Is it enough to define the wavelet class, and add the filter to the WT.FILTERS dict?

struct QShift{K} <: OrthoOrthoWaveletClass end
class(::QShift) = "QShift"
name(::QShift{K}) where K = "qshift$K"
vanishingmoments(::QShift{K}) where K = K
WT.FILTERS["qshift10"] = [ #= filter values =# ]

Are there other things to implement? Should I expect errors somewhere?

Activity

  1. BenjaminDoran commented on Sep 23, 2026

    @BenjaminDoran
    Author

    This seems to work, but it would be nice if anyone has any tips for where to expect rough edges

    struct QShift{K} <: WT.OrthoWaveletClass end
    WT.class(::QShift) = "QShift"
    WT.name(::QShift{K}) where K = "qshift$K"
    WT.vanishingmoments(::QShift{K}) where K = K
    WT.FILTERS["qshift10"] = [ #= filter =#];
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions