hyperiax.prebuilt.phylo_mean

hyperiax.prebuilt.phylo_mean()[source]

Return a SweepFn that fills each non-leaf node’s estimated_value with the edge-length-weighted average of its children’s estimated_value.

The sweep reads estimated_value and edge_length from each child and writes back estimated_value on the parent. Leaves are untouched.

Return type:

SweepFn