getClusterCt: Retrieve the Central Coordinates for Each Cluser after...

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

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.

Usage

1
getClusterCt(samples, clsInf)

Arguments

samples

Data frame for samples with the columns of coordinates (column name: x and y)

clsInf

Cluster results obtained from the fucntion,exeCluster

Details

Retrieve the central point for each cluster.

Value

vector format: coordinates (x and y) for each cluster

Author(s)

Lianfa Li lspatial@gmail.com

References

Thomas, C.; Leiserson, C.; Rivest, R.; Stein, C., Introduction To Algorithms (Third ed.). MIT Press: 2009

See Also

exeCluster, ~~~

Examples

1
2
3
samplePnt=data.frame(x=runif(100,1,100),y=runif(100,1,100))
clusterId=exeCluster(samplePnt,10)
clscenters=getClusterCt(samplePnt,clusterId)

sptemExp documentation built on July 7, 2019, 9:02 a.m.