phylox.generators.mcmc.base.acceptance_probability
- phylox.generators.mcmc.base.acceptance_probability(network, result_network, move, move_type_probabilities, number_of_leaves=None, current_reticulation_number=None, symmetries=False)
Computes the acceptance probability of a move.
- Parameters:
network – the network before the move.
result_network – the network after the move.
move – the move.
move_type_probabilities – the move type probabilities.
number_of_leaves – the number of leaves in the network.
current_reticulation_number – the current number of reticulations in the network.
symmetries – whether to correct for symmetries.
- Returns:
the acceptance probability of the move.