Learn R Programming

TML (version 2.3.0)

trop.hyper.dist: Calculate the tropical distance to a max-tropical hyperplane

Description

Calculate the tropical distance to a max-tropical hyperplane

Usage

trop.hyper.dist(O, x0, tadd = max)

Value

tropical distance to max-plus tropical hyperplane

Arguments

O

normal vector of a tropical hyperplane; numeric vector

x0

point of interest; numeric vector

tadd

function; max indicates max-plus addition, min indicates min-plus addition. Defaults to max

Author

David Barnhill david.barnhill@nps.edu

Examples

Run this code
O <-c(0,-1,-1)
x0 <- c(0,-2,-8)
trop.hyper.dist(O,x0)
trop.hyper.dist(O,x0,tadd=min)

Run the code above in your browser using DataLab