Description Usage Arguments Details Examples
Finds closest node from given list to vector. Often used together with calculateCentroids
1 | findClosests(object, node.ids, x)
|
object |
GNG object |
node.ids |
List of indexes of nodes in gng. |
x |
Can be either |
Find closest node
1 2 3 4 5 6 7 | ## Not run:
gng <- GNG(gng.preset.sphere(100))
# Find closest centroid to c(1,1,1)
found.centroids <- calculateCentroids(gng)
findClosests(gng, found.centroids, c(1,1,1))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.