tropFW | R Documentation |
Compute the tropical Fermat-Weber (FW) point for a given data matrix. The FW point minimizes the summed tropical distance to the trees described in the data matrix.
tropFW(x)
x |
a data matrix, of dimension nobs x nvars; each row is an observation vector. |
A list containing:
fw |
The fermat-weber point. |
distsum |
The sum of distance from each observation to the fermat-weber point. |
x <- matrix(rnorm(100), ncol = 10) tropFW(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.