find_neighbors {lgspline} | R Documentation |
Find Neighboring Cluster Partitions Using Midpoint Distance Criterion
Description
Identifies neighboring partitions by evaluating whether the midpoint between cluster centers is closer to those centers than to any other center.
Usage
find_neighbors(centers, parallel, cl, neighbor_tolerance)
Arguments
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 |
Value
List where element i contains indices of centers neighboring center i
[Package lgspline version 0.2.0 Index]