Announcement: All noncommercial projects registered to use Earth Engine beforeApril 15, 2025 mustverify noncommercial eligibility to maintain access. If you have not verified by September 26, 2025, your access may be on hold.

ee.Clusterer.wekaCascadeKMeans

Cascade simple k-means selects the best k according to the Calinski-Harabasz criterion. For more information see:

Calinski, T. and J. Harabasz. 1974. A dendrite method for cluster analysis. Commun. Stat. 3: 1-27.

UsageReturns
ee.Clusterer.wekaCascadeKMeans(minClusters,maxClusters,restarts,manual,init,distanceFunction,maxIterations)Clusterer
ArgumentTypeDetails
minClustersInteger, default: 2Min number of clusters.
maxClustersInteger, default: 10Max number of clusters.
restartsInteger, default: 10Number of restarts.
manualBoolean, default: falseManually select the number of clusters.
initBoolean, default: falseSet whether to initialize using the probabilistic farthest first like method of the k-means++ algorithm (rather than the standard random selection of initial cluster centers).
distanceFunctionString, default: "Euclidean"Distance function to use. Options are: Euclidean and Manhattan.
maxIterationsInteger, default: nullMaximum number of iterations for k-means.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-09-19 UTC.