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