CCT.NUI.Core.Clustering.KMeansClusterFactory.Create C# (CSharp) Method

Create() public method

public Create ( IList points ) : ClusterCollection
points IList
return ClusterCollection
        public ClusterCollection Create(IList<Point> points)
        {
            var reducedPoints = this.ReducePoints(points);

            if (this.AreEnoughPointsForClustering(reducedPoints.Count))
            {
                this.FindClusters(reducedPoints);
                this.AssignAllPoints(points);
            }
            else
            {
                this.value = new ClusterCollection();
            }
            return this.value;
        }