powered by
This function uses a hit-and-run sampler to uniformly sample from a max-plus tropical line segment
HAR.TLineSeg(D1, D2, tadd = max)
point on the line segment defined by D1 and D2
point in the tropical projective torus
string; max indicates max-plus addition, min indicates min-plus addition. Defaults to max
Ruriko Yoshida ryoshida@nps.edu
Yoshida, Ruriko, Keiji Miura and David Barnhill (2022). Hit and Run Sampling from Tropically Convex Sets.
D1 <-c(0,4,2) D2 <- c(0,7,-1) HAR.TLineSeg(D1, D2,tadd=max) HAR.TLineSeg(D1, D2,tadd=min)
Run the code above in your browser using DataLab