boundary_persistence_scores

boundary_persistence_scores(tree, margin_pct=0.1, max_depth=None)

Compute depth-weighted boundary persistence bridge scores.

Parameters

Name Type Description Default
tree DYF tree dict from build_dyf_tree(). required
margin_pct Percentile threshold (0-1) for boundary detection. 0.1
max_depth Tree depth used for weighting. If None, inferred from tree[‘depth’]. None

Returns

Name Type Description
np.ndarray of shape (n,) with non-negative bridge scores.