Skip to content

Instantly share code, notes, and snippets.

@ondrej-kvasnovsky
Created June 5, 2015 22:11
Show Gist options
  • Save ondrej-kvasnovsky/bb4d1d1eca2eafc6401b to your computer and use it in GitHub Desktop.
Save ondrej-kvasnovsky/bb4d1d1eca2eafc6401b to your computer and use it in GitHub Desktop.
convexHull <- function(x)
{
indices <- chull(x[,1], x[,2])
points <- x[indices,]
points
}
convexHullFactory <- function()
{
list(name=convexHull,udxtype=c("transform"),intype=c("float","float"), outtype=c("float","float"), outnames=c("x","y"))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment