powered by
This function samples points uniformly the space defined by a tropical simplex
VE.HAR(D_s, x0, I = 1, tadd = max)
next sampled point from the tropical polytope
matrix of vertices of a tropical simplex; each row is a vertex
initial point for sampler, numeric vector
number of states in Markov chain
function; max indicates max-plus addition, min indicates min-plus addition. Defaults to max
David Barnhill david.barnhill@nps.edu
Yoshida, Ruriko, Keiji Miura and David Barnhill (2022). Hit and Run Sampling from Tropically Convex Sets.
D_s <-matrix(c(0,0,0,0,10,0,0,0,10),3,3,TRUE) x0 <- c(0,0,0) VE.HAR(D_s, x0, I = 50) VE.HAR(D_s, x0, I = 50,tadd=min)
Run the code above in your browser using DataLab