phylox.generators.heath.heath.graph_distance_to_hybridization_rate
- phylox.generators.heath.heath.graph_distance_to_hybridization_rate(distance, hybridization_left_bound, hybridization_right_bound, hybridization_left_rate, hybridization_right_rate)
Returns a hybdridization rate for a given distance. The distance represents the evolutionary distance between two extant species. The function is used in the Heath generator to determine the hybdridization rate between two current taxa, where the distance is a weighthed sum of all up-down distances between the two taxa in the current network. The dependency on the distance takes the following shape:
hybridization_left_bound: l
hybridization_right_bound: r
hybridization_left_rate: rl
hybridization_right_rate: rr.
| lr +--- | \ | \ | \ rr + ----- | 0 +---+----+----- 0 l r
where the distance is on the x-axis, and the hybridization rate on the y-axis.