powered by
This function samples points on a tropical line segment about a location parameter for a given scale parameter defined in terms of tropical distance
HAR.TLineSeg.centroid(D1, D2, m, s, tadd = max)
point on the line segment defined by D1 and D2 sampled about mu
point in the tropical projective torus
location parameter
scale parameter
function; max indicates max-plus addition, min indicates min-plus addition. Defaults to max
David Barnhill david.barnhill@nps.edu
D1 <-c(0,4,2) D2 <- c(0,7,-1) m<-c(0,7,2) s<-1 HAR.TLineSeg.centroid(D1, D2,m,s) HAR.TLineSeg.centroid(D1, D2,m,s,tadd=min)
Run the code above in your browser using DataLab