simu_px_tree_HR function

Simulate HR extremal functions on a tree