dyadic | R Documentation |
Create a complete dyadic tree structure
Create a complete dyadic tree structure
dyadic.from.leaf_list(leaf_list, method)
dyadic.from.window.size(m, s, method)
dyadic.from.height(m, H = NULL, method)
leaf_list |
A list of leaves |
method |
A numeric value. If |
m |
An integer value, the number of elements in the structure |
s |
An integer value, the number of elements in each leaf |
H |
An integer value, the desired maximal height of the tree |
dyadic.from.window.size
Dyadic tree structure from window size: the number of elements in each leaf is set to s
dyadic.from.height
Dyadic tree structure from height: the total height of tree is set to H
dyadic.from.max.size
Dyadic tree structure from maximum achievable height: the total height of tree is set to the maximum possible height, ie floor(2 + log2(m - 1))
A list of lists containing the dyadic structure
A list with two elements:
A list of leaves
A list of lists containing the dyadic structure
m <- 6
dd <- dyadic.from.window.size(m, s = 2, method = 2)
str(dd)
dd <- dyadic.from.height(m, H = 3, method = 2)
str(dd)
dd <- dyadic.from.height(m, method=2)
str(dd)
leaf_list <- dd$leaf_list
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.