CCT.NUI.Core.Clustering.KMeans.DetectCountChange C# (CSharp) Method

DetectCountChange() private method

private DetectCountChange ( int counts ) : bool
counts int
return bool
        private bool DetectCountChange(int[] counts)
        {
            for (int index = 0; index < counts.Length; index++)
            {
                var newCount = this.clusters[index].PointCount;
                if (newCount == 0 || newCount != counts[index])
                {
                    return true;
                }
            }
            return false;
        }