Description Usage Arguments Details Value Author(s) References See Also Examples
This function is the second step for Adaptive Kruskal algorithm for generating aggregate centers for Thiessen polygons with the aim to obtain the central point for each cluster.
1 | getClusterCt(samples, clsInf)
|
samples |
Data frame for samples with the columns of coordinates (column name: x and y) |
clsInf |
Cluster results obtained from the fucntion,exeCluster |
Retrieve the central point for each cluster.
vector format: coordinates (x and y) for each cluster
Lianfa Li lspatial@gmail.com
Thomas, C.; Leiserson, C.; Rivest, R.; Stein, C., Introduction To Algorithms (Third ed.). MIT Press: 2009
exeCluster
, ~~~
1 2 3 | samplePnt=data.frame(x=runif(100,1,100),y=runif(100,1,100))
clusterId=exeCluster(samplePnt,10)
clscenters=getClusterCt(samplePnt,clusterId)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.