Beispiel #1
0
        public KAverageMethod(STATND statNd, int k, IKFirstPointsSelector KFirstPointsSelector)
        {
            m_clasters = new Claster[k];
            m_k        = k;

            m_data = statNd.getJaggedArrayOfData();
            m_N    = m_data.GetLength(0);

            double[][] centers = KFirstPointsSelector.GetFirstKPoints(m_data, k);

            for (int i = 0; i < k; i++)
            {
                m_clasters[i] = new Claster(centers[i]);
            }
        }
Beispiel #2
0
 public void AppendPointsFromClater(Claster claster) => Points.AddRange(claster.Points);