Exemplo n.º 1
0
 private void trackBar1_Scroll(object sender, EventArgs e)
 {
     ParameterEventArgs p = new ParameterEventArgs(Convert.ToDouble(trackBar1.Value) / 10);
     PCevent(this, p);
 }
Exemplo n.º 2
0
        private void UpdateParameter(object sender, ParameterEventArgs e)
        {
            textBox1.Text = Convert.ToString(e.GetPar);
            textBox3.Clear();
            TextOperations.InitParams(TestData.Texts[comboBox2.SelectedIndex]);

            TextOperations.TagNullifier();
            for (int i = 0; i < TextOperations.ts.Count; i++)
            {
                TextOperations.Tag.Add(TextOperations.Frequency(TextOperations.vClusterize(TextOperations.ts[i].ToString())));
            }
            TextOperations.FormMatrix();
            if (EnableClusterPainting)
            {
                C = new Clusters(TextOperations.GetMatrix, TextOperations.GetTextTitles, TextOperations.GetWords);
                CBaction();
                textBox3.Clear();
                for (int i = 0; i < C.GetClusters.Count; i++)
                {
                    for (int j = 0; j < C.GetClusters[i].Data.Count; j++)
                    {
                        textBox3.Text += C.GetClusters[i].Data[j].Data.GetTag += " ";
                    }
                    textBox3.Text += " | ";
                }
                Invalidate();
            }
        }