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