tadd {tropAlgebra} | R Documentation |
Tropical Sum Function
Description
Calculates tropical sum of numeric values. This function workks only if arguments are numeric values. The tropical sum of two numbers is the minimum number. If arguments are not numeric values then it generates an error. If a vector is passed as argument to the funcion it will return the tropical sum of all the elements in the vector.
Usage
tadd(...)
Arguments
... |
Any number of numeric values or a single vector. |
Details
The tropical sum of two numbers is the minimum number. This function returns the minimum of arguments. If arguments are not numeric values then it generates an error.
Value
Returns tropical sum of arguments.
Examples
x<-5
y<-6
tadd(x,y)
[Package tropAlgebra version 0.1.1 Index]