powered by
This function uses tropical HAR with a uniform target distribution to estimate the volume of a tropical polytope
trop.Volume(B, P, x0, s, I, r)
list containing ratio of points falling in P; volume of the tropical ball; volume estimate of P
matrix of points defining a minimum enclosing ball for a polytope P; rows are the points
matrix of points defining a tropical polytope; rows are the points
initial point used for the HAR sampler
number of points to sample from the minimum enclosing ball
number of iterations for the HAR sampler
radius of the minimum enclosing tropical ball
David Barnhill david.barnhill@nps.edu
Barnhill, David, Ruriko Yoshida and Keiji Miura (2023). Maximum Inscribed and Minimum Enclosing Tropical Balls of Tropical Polytopes and Applications to Volume Estimation and Uniform Sampling.
P <-matrix(c(0,0,0,0,3,1,0,2,5),3,3,TRUE) BR<-min_enc.ball(P) B<-trop.bal.vert(BR[[1]],BR[[2]]) x0<-c(0,1.5,.4) S<-200 I<-50 R<-BR[[2]] trop.Volume(B,P,x0,S,I,R)
Run the code above in your browser using DataLab