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.wekaXMeans

  • X-Means extends K-Means by efficiently estimating the number of clusters.

  • Theee.Clusterer.wekaXMeans function is used with various parameters to configure the clustering process.

  • Parameters such asminClusters,maxClusters,maxIterations, and distance function can be specified.

X-Means is K-Means with an efficient estimation of the number of clusters. For more information see:

Dan Pelleg, Andrew W. Moore: X-means: Extending K-means with Efficient Estimation of the Number of Clusters. In: Seventeenth International Conference on Machine Learning, 727-734, 2000.

UsageReturns
ee.Clusterer.wekaXMeans(minClusters,maxClusters,maxIterations,maxKMeans,maxForChildren,useKD,cutoffFactor,distanceFunction,seed)Clusterer
ArgumentTypeDetails
minClustersInteger, default: 2Minimum number of clusters.
maxClustersInteger, default: 8Maximum number of clusters.
maxIterationsInteger, default: 3Maximum number of overall iterations.
maxKMeansInteger, default: 1000The maximum number of iterations to perform in KMeans.
maxForChildrenInteger, default: 1000The maximum number of iterations in KMeans that is performed on the child centers.
useKDBoolean, default: falseUse a KDTree.
cutoffFactorFloat, default: 0Takes the given percentage of the split centroids if none of the children win.
distanceFunctionString, default: "Euclidean"Distance function to use. Options are: Chebyshev, Euclidean, and Manhattan.
seedInteger, default: 10The randomization seed.

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-07-13 UTC.