Skip to contents

Expand a vector of counts into a b-ary tree of counts, where each branch is the sum of its b immediate children.

Usage

make_b_ary_tree(input_domain, input_metric, leaf_count, branching_factor)

Arguments

input_domain

undocumented

input_metric

undocumented

leaf_count

The number of leaf nodes in the b-ary tree.

branching_factor

The number of children on each branch of the resulting tree. Larger branching factors result in shallower trees.

Value

Transformation

Details

make_b_ary_tree in Rust documentation.

Supporting Elements:

  • Input Domain: VectorDomain<AtomDomain<TA>>

  • Output Domain: VectorDomain<AtomDomain<TA>>

  • Input Metric: M

  • Output Metric: M