Learn R Programming

TML (version 2.3.0)

Ultrametrics.HAR: Hit-and-Run Sampler for the space of ultrametrics

Description

This sampler samples a point in the space of ultrametrics where each point represents an equidistant tree on n leaves

Usage

Ultrametrics.HAR(x0, n, I = 1, h = 1)

Value

point in the space of ultrametrics over n leaves

Arguments

x0

an equidistant tree defined as ultrametric

n

number of leaves for the equidistant tree

I

number of states in the Markov chain

h

height of phylogenetic tree

Author

Ruriko Yoshida ryoshida@nps.edu

References

Yoshida, Ruriko, Keiji Miura and David Barnhill (2022). Hit and Run Sampling from Tropically Convex Sets.

Examples

Run this code
x0 <-Sim_Trees15[1,]
n<-10

Ultrametrics.HAR(x0, n, I = 50, h = 1)

Run the code above in your browser using DataLab