tb.raw: Teitz-Bart algorithm applied to a 'raw' distance matrix

Description Usage Arguments Value Examples

Description

Teitz-Bart algorithm applied to a 'raw' distance matrix

Usage

1
tb.raw(d, guess, verbose = FALSE)

Arguments

d

- A distance matrix (not necessarily Euclidean)

guess

- a guess at the set of p points constituting the p-median

verbose

- if TRUE print out each swap in the algorithm (default is FALSE)

Value

Set of point indices for p-median (may be local optimum)

Examples

1
2
3
4
x1 <- rnorm(100)
y1 <- rnorm(100)
d <- as.matrix(dist(cbind(x1,y1)))
tb.raw(d,c(1,2))


Search within the tbart package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.