Пример #1
0
        private void ex_rules_Click(object sender, EventArgs e)
        {
            double psup;
            double pcon;
            double ppco;
            double nsup;
            double ncon;
            double npco;

            ac = new AR(trainmessages, AllKeyWords);
            try
            {
                psup = Convert.ToDouble(psupp.Text);
                pcon = Convert.ToDouble(pconf.Text);
                ppco = Convert.ToDouble(ppconf.Text);
                nsup = Convert.ToDouble(nsupp.Text);
                ncon = Convert.ToDouble(nconf.Text);
                npco = Convert.ToDouble(npconf.Text);
            }
            catch
            {
                MessageBox.Show("incorect format");
                return;
            }

            ac = new AR(trainmessages, AllKeyWords);
            ac.EX_Rules(psup, pcon, ppco, nsup, ncon, npco);
        }