R/which.tile.R

Defines functions which.tile

Documented in which.tile

which.tile <- function(x,y,tl){
  u  <- c(x,y)
  nt <- length(tl)
  d2 <- numeric(nt)
  for(i in 1:nt) {
    d2[i] <- sum((u-tl[[i]]$pt)^2)
  }
  which.min(d2)
}

Try the deldir package in your browser

Any scripts or data that you put into this service are public.

deldir documentation built on Nov. 23, 2023, 9:09 a.m.