2

Does such a function exist yet? If so, where can I find it?

Basically, I'm looking for the equivalent of Matlab's convhulln() function. It takes as its input a data set (with N dimensions) and returns the data points that belong to the convex hull of that data space.

Zack
  • 181
  • 1
  • 11

1 Answers1

4

See CHull.jl, which has a wrapper to scipy.spatial.ConvexHull (N-dimensional)

using CHull

p = rand(10,2)
ch = chull(p)
ch.points         # original points
ch.vertices       # indices to line segments forming the convex hull
show(ch)
Felipe Lema
  • 2,700
  • 12
  • 19