For t = delaunayn(x)
, where x
is a set of points in d
dimensions, tsearchn(x, t, xi)
finds the index in t
containing the points xi
. For points outside the convex hull,
idx
is NA
. tsearchn
also returns the barycentric
coordinates p
of the enclosing triangles.
1 |
x |
An |
t |
A |
xi |
An |
fast |
If the data is in 2D, use the fast C-based |
A list containing:
list("idx") |
An |
list("p") |
An |
Based on the Octave function Copyright (C) 2007-2012 David Bateman.
David Sterratt
tsearch, delaunayn
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.