Completes the forest in the sens of the Reference: adds the missing atoms/leafs in the reference family with a forest structure \((R_k, \zeta_k)\) so that each atom is well represented by a \(R_k\). The associated \(\zeta_k\) is taken as the trivial \(|R_k|\).
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
The forest must not be pruned (with pruning()
) beforehand. The code will not behave expectedly
and will return a wrong result if a pruned forest is given as input. Maybe the function could be rewritten
going from the leaves to the roots instead of the contrary, to avoid this issue.