BranchBreakingOptions: Set options for branch breaking

BranchBreakingOptionsR Documentation

Set options for branch breaking

Description

BranchBreakingOptions is an R6 class that defines the set of optiopns required to perform branch breaking.

Active bindings

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.

Methods

Public methods


Method new()

Usage
BranchBreakingOptions$new(
  swapper = "tbr",
  cluster_size = 0,
  safe_unclip = FALSE,
  fill_only = FALSE,
  save_multiple = TRUE,
  random_clip = FALSE
)
Arguments
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.


Method print()

Usage
BranchBreakingOptions$print(...)
Arguments
...

Ignored.


Method queue()

Usage
BranchBreakingOptions$queue(...)
Arguments
...

Ignored.


Method clone()

The objects of this class are cloneable with this method.

Usage
BranchBreakingOptions$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


paravian/nitro documentation built on Jan. 17, 2025, 11:21 p.m.