delete.gaps: Delete the gaps induced by pruning

View source: R/tree-functions.R

delete.gapsR Documentation

Delete the gaps induced by pruning

Description

A small optimization that can be done after pruning that can speed up computations (it removes the gaps introduced by the pruning)

Usage

delete.gaps(C, ZL, leaf_list)

Arguments

C

A list of list representing the forest structure. See V.star() for more information.

ZL

A list of integer vectors representing the upper bounds \zeta_k of the forest structure. See V.star() for more information.

leaf_list

A list of vectors representing the atoms of the forest structure. See V.star() for more information.

Details

See pruning().

Value

A list with two named elements.

C

The new C after deleting the gaps.

ZL

The new ZL after deleting the gaps.


pneuvial/sanssouci documentation built on July 4, 2025, 3:16 p.m.