Learn R Programming

TML (version 2.3.0)

HAR.TLineSeg.centroid: Gaussian-like Sampling on a max- or min-plus tropical line segment

Description

This function samples points on a tropical line segment about a location parameter for a given scale parameter defined in terms of tropical distance

Usage

HAR.TLineSeg.centroid(D1, D2, m, s, tadd = max)

Value

point on the line segment defined by D1 and D2 sampled about mu

Arguments

D1

point in the tropical projective torus

D2

point in the tropical projective torus

m

location parameter

s

scale parameter

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
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