mvNNI - Nearest Neighbor Interchange (NNI) move.
| tree : | TimeTree (<stochastic> pass by reference) |
| The tree on which this move operates. | |
| weight : | RealPos (pass by value) |
| The weight determines the relative frequency with which this move will be attempted. For details, see the description of the 'moveschedule' parameter on the documentation page for 'mcmc()'. | |
| Default : 1 | |
| tuneTarget : | Probability (pass by value) |
| The acceptance probability targeted by auto-tuning. | |
| Default : 0.44 |
taxa <- v(taxon("A"), taxon("B"), taxon("C"), taxon("D"), taxon("E"), taxon("F"))
height ~ dnUniform(0, 10)
moves = VectorMoves()
# Apply the NNI move to an unrooted BranchLengthTree
bltree ~ dnUniformTopology(taxa)
moves.append( mvNNI(tree=bltree, weight=taxa.size()) )
# Apply the NNI move to a rooted TimeTree
timetree ~ dnUniformTimeTree(rootAge=height, taxa=taxa)
moves.append( mvNNI(tree=timetree, weight=taxa.size()) )