View source: R/HelperFunctions.R
| find_neighbors | R Documentation |
Identifies neighboring partitions by evaluating whether the midpoint between cluster centers is closer to those centers than to any other center.
find_neighbors(centers, parallel, cl, neighbor_tolerance)
centers |
Matrix; rows are cluster center coordinates |
parallel |
Logical; use parallel processing |
cl |
Cluster object for parallel execution |
neighbor_tolerance |
Numeric; scaling factor for distance comparisons |
List where element i contains indices of centers neighboring center i
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.