cascade(hk, J=7)
The algorithm uses the vector cascade algorithm described by Strang and Nguyen in "Wavelets and Filter Banks". It builds a dictionary of values and slices for quick reuse. Then inserts vectors into final vector at the end.
Coefficients of low-pass filter.
Values will be computed at grid points K/2**J
. Default is 7.
The dyadic points K/2**J
for K=0...N * (2**J)-1
where len(hk) = len(gk) = N+1
.
The scaling function phi(x)
at x
: phi(x) = sum(hk * phi(2x-k))
, where k is from 0 to N.
The wavelet function psi(x)
at x
: phi(x) = sum(gk * phi(2x-k))
, where k is from 0 to N. psi
is only returned if :None:None:`gk`
is not None.
Return (x, phi, psi) at dyadic points K/2**J
from filter coefficients.
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them