示例#1
0
        /// <summary>
        /// Конвертация SettingCLKMeans в IVSettingCL.
        /// </summary>
        private static IVSettingCL ConvertSettingClKMeansToIVSettingCL(SettingCLKMeans setting)
        {
            IVSettingCL vsetting = new VSettingCLKMeans
            {
                Seeding = ConvertSeedingsToVSeedings(setting.Seeding),
                MaxDegreeOfParallelism = setting.MaxDegreeOfParallelism,
                MaxItarations          = setting.MaxItarations
            };

            return(vsetting);
        }
示例#2
0
        /// <summary>
        /// Конвертация VSettingCLKMeans в SettingCLKMeans.
        /// </summary>
        private static SettingCLKMeans ConvertVSettingCLKMeansToSettingCLKMeans(VSettingCLKMeans vsetting)
        {
            SettingCLKMeans setting = new SettingCLKMeans
            {
                Seeding = ConvertVSeedingsToSeedings(vsetting.Seeding),
                MaxDegreeOfParallelism = vsetting.MaxDegreeOfParallelism,
                MaxItarations          = vsetting.MaxItarations
            };

            return(setting);
        }
示例#3
0
 /// <summary>
 /// Создает объект для выполнения кластеризации методом К-средних.
 /// </summary>
 /// <param name="setting">Настройка кластеризации.</param>
 public KMeansAlgoritm(SettingCLKMeans setting)
 {
     _setting = setting;
 }