function WNODE, d,b ;+ ;NAME: ; WNODE ; ;PURPOSE: ; To perform tree indexing. ; ;CATEGORY: ; Wavelets. ; ;CALLING SEQUENCE: ; index = WNODE(d,b) ; ;INPUTS: ; d = depth from root of tree ; b = index among the 2^d possibilities ; in a left-right scan at that depth ; ;OUTPUTS: ; index = linear index of node in tree structure ; ;EXAMPLE: ; ;SEE ALSO: ; wbbasis, wstatree ; ;MODIFICATION HISTORY: ; Written by: Amara Graps December 1994/August1995 ;Translated from MatLab Wavelab routine: node.m ;- index = 2^d + b ; ; Algorithm Source: WaveLab Version 0.600 ; WaveLab WWW site: http://playfair.stanford.edu/ ; WaveLab Questions? e-mail wavelab@playfair.stanford.edu ; RETURN, index END ;***************************************************