Wavelet Toolbox
  Go to function:
    Search    Help Desk 
depo2ind    Examples   See Also

Node depth-position to node index.

Syntax

Description

depo2ind is a tree management utility.

For a tree of order O, N = depo2ind(O,[D P]) computes the indices N of the nodes whose depths and positions are encoded within [D,P].

D, P and N are column vectors. The values of D, P and N are constrained by:

D = depths, 0 D dmax

P = positions at depth D, 0 P orderD-1

N = indices, 0 N < (order(dmax+1)-1)/(order-1)

Note that for a column vector X, we have depo2ind(O,X) = X.

Examples

See Also

ind2depo, maketree, wtreemgr

[ Previous | Help Desk | Next ]