project.pi {TML} | R Documentation |
Project a point on the tropical projective torus onto a tropical polytope
Description
This function projects points in the tropical projective torus onto a max- or min-plus tropical polytope based on tropical distance
Usage
project.pi(D_s, D, tadd = max)
Arguments
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. |
Value
projection of point D onto the tropical polytope defined by D_s
Author(s)
David Barnhill david.barnhill@nps.edu
Examples
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)
[Package TML version 2.3.0 Index]