BranchBreakingOptions | R Documentation |
BranchBreakingOptions
is an R6 class that defines the set of optiopns
required to perform branch breaking.
swapper
A character vector indicating the branch swapping algorithm
to use. Options are either 'tbr
' (the default) or 'spr
'.
cluster_size
An integer value indicating the number of nodes
(clusters) to use during swapping. Applied only when swapper
is
set to tbr
. Larger clusters will result in faster swapping as
matrix size increases. If left as 0 (the default), cluster size will be
automatically determined.
safe_unclip
A logical value indicating whether to use a safer but
slower method for updating buffers when clipping to find a better tree.
Applied only when swapper
is set to tbr
.
fill_only
A logical value indicating whether to stop swapping when the tree buffer is full.
save_multiple
A logical value indicating whether to save multiple trees during swapping.
random_clip
A logical value indicating whether to randomize the tree clipping sequence.
new()
BranchBreakingOptions$new( swapper = "tbr", cluster_size = 0, safe_unclip = FALSE, fill_only = FALSE, save_multiple = TRUE, random_clip = FALSE )
swapper
A character vector indicating the branch swapping algorithm
to use. Options are either 'tbr
' (the default) or 'spr
'.
cluster_size
An integer value indicating the number of nodes
(clusters) to use during swapping. Applied only when swapper
is
set to tbr
. Larger clusters will result in faster swapping as
matrix size increases. If left as 0 (the default), cluster size will be
automatically determined.
safe_unclip
A logical value indicating whether to use a safer but
slower method for updating buffers when clipping to find a better tree.
Applied only when swapper
is set to tbr
.
fill_only
A logical value indicating whether to stop swapping when the tree buffer is full.
save_multiple
A logical value indicating whether to save multiple trees during swapping.
random_clip
A logical value indicating whether to randomize the tree clipping sequence.
print()
BranchBreakingOptions$print(...)
...
Ignored.
queue()
BranchBreakingOptions$queue(...)
...
Ignored.
clone()
The objects of this class are cloneable with this method.
BranchBreakingOptions$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.