powered by
ODMeans Function
odmeans( data, numKGlobal, limitSeparationGlobal, maxDistGlobal, distHierarchical, numKLocal, limitSeparationLocal, maxDistLocal, kmeans_pp = FALSE )
Returns an S3 class object similar to kmeans S3 Class, with eight properties.
A data frame with four columns: Initial Latitude | Initial Longitude | Final Latitude | Final Longitude
Initial number of clusters in the first call of k-means in the global hierarchy.
Within cluster distance threshold to determine if a global cluster must be separated into two new clusters.
Meter distance threshold used to re-estimate centroids in global hierarchy.
Meter distance threshold between origin and destination to generate new local clusters from a first layer cluster
Initial number of clusters in the first call of k-means in the local hierarchy.
Within cluster distance threshold to determine if a local cluster must be separated into two new clusters.
Meter distance threshold used to re-estimate centroids in local hierarchy.
Boolean value, if TRUE it initialize centroids using kmeans++.
data(ODMeansTaxiData) odmeans_data = odmeans(ODMeansTaxiData, 10, 300, 1000, 2200, 3, 50, 100)
Run the code above in your browser using DataLab