Beispiel #1
0
 private void dgvClasses_CurrentCellChanged(object sender, EventArgs e)
 {
     if (dgvClasses.CurrentRow != null)
     {
         DiscriminantAnalysisClass dclass = (DiscriminantAnalysisClass)dgvClasses.CurrentRow.DataBoundItem;
         dgvScatter.DataSource   = new ArrayDataView(dclass.Scatter);
         dgvClassData.DataSource = new ArrayDataView(inputs.Get(outputs.Find(x => x == dclass.Number)));
     }
 }
Beispiel #2
0
        private void dgvClasses_CurrentCellChanged(object sender, EventArgs e)
        {
            if (dgvClasses.CurrentRow != null)
            {
                DiscriminantAnalysisClass dclass = (DiscriminantAnalysisClass)dgvClasses.CurrentRow.DataBoundItem;

                dgvScatter.DataSource   = new ArrayDataView(dclass.Scatter);
                dgvClassData.DataSource = new ArrayDataView(dclass.Subset);
            }
        }
Beispiel #3
0
        private void dgvClasses_CurrentCellChanged(object sender, EventArgs e)
        {
            if (dgvClasses.CurrentRow != null)
            {
                DiscriminantAnalysisClass dclass = (DiscriminantAnalysisClass)dgvClasses.CurrentRow.DataBoundItem;

                ImageList list = new ImageList();

                lvClass.Items.Clear();
                lvClass.LargeImageList = list;
                int[] idx = dclass.Indices;
                for (int i = 0; i < idx.Length; i++)
                {
                    Bitmap bitmap = (Bitmap)dgvAnalysisSource.Rows[idx[i]].Cells["colTrainingImage"].Value;
                    list.Images.Add(bitmap);

                    var item = new ListViewItem(String.Empty, i);
                    lvClass.Items.Add(item);
                }
            }
        }
        private void dgvClasses_CurrentCellChanged(object sender, EventArgs e)
        {
            if (dgvClasses.CurrentRow != null)
            {
                DiscriminantAnalysisClass dclass = (DiscriminantAnalysisClass)dgvClasses.CurrentRow.DataBoundItem;

                ImageList list = new ImageList();

                lvClass.Items.Clear();
                lvClass.LargeImageList = list;

                int i = 0;
                foreach (DataGridViewRow row in dgvAnalysisTesting.Rows)
                {
                    int idx = (int)row.Cells["colTestingExpected"].Value;

                    Bitmap bitmap = (Bitmap)dgvAnalysisSource.Rows[idx].Cells["colTrainingImage"].Value;
                    list.Images.Add(bitmap);

                    lvClass.Items.Add(new ListViewItem(String.Empty, i++));
                }
            }
        }