Пример #1
0
        public IActionResult ProductsLabels()
        {
            KmeansAlgo      kmeans    = new KmeansAlgo();
            KmeansViewModel viewModel = new KmeansViewModel
            {
                labels      = kmeans.k_means2(),
                topproducts = kmeans.distans()
            };

            return(View(viewModel));
        }
        // public event System.Windows.Forms.MouseEventHandler MouseClick;
        public KmeansView(Window1 win, addDisViewModel addDisViewModel)
        {
            InitializeComponent();
            this.win             = win;
            this.addDisViewModel = addDisViewModel;

            listSelectedClients = new List <Client>();

            myvm             = new KmeansViewModel(this);
            this.DataContext = myvm;
            myvm.KMeans();
        }
Пример #3
0
 public KmeansModel(KmeansViewModel kmeansVM)
 {
     this.KmeansVM = kmeansVM;
     blimp         = new BLimp();
 }