project.pi | R Documentation |
This function projects points in the tropical projective torus onto a max- or min-plus tropical polytope based on tropical distance
project.pi(D_s, D, tadd = max)
D_s |
matrix where each row is a point defining a tropical polytope |
D |
point to be projected onto D_s |
tadd |
function; max indicates max-plus addition, min indicates min-plus addition. Defaults to max. |
projection of point D onto the tropical polytope defined by D_s
David Barnhill david.barnhill@nps.edu
D_s <-matrix(c(0,0,0,0,2,5,0,3,1),3,3,TRUE)
D <- c(0,7,-1)
project.pi(D_s,D)
project.pi(D_s,D,tadd=min)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.