Beispiel #1
0
        private void AprioriCalculation_Click(object sender, EventArgs e)
        {
            AprioriCollection.Items.Clear();
            if (itemsets != null)
            {
                ItemSetCollection L = new Apriori().DoApriori(itemsets, 1.0);

                foreach (var output in L)
                {
                    AprioriCollection.Items.Add(output.Test() + " " + L.FindAmount(output));
                }
            }
            else
            {
                MessageBox.Show("No data found, Insert data");
            }
        }
Beispiel #2
0
        private void AprioriDataMining_Click(object sender, EventArgs e)
        {
            AprioriMine.Items.Clear();
            if (itemsets != null)
            {
                ItemSetCollection      L    = new Apriori().DoApriori(itemsets, 10.0);
                List <AssociationRule> mine = new Apriori().Mine(itemsets, L, 10.0);

                foreach (var output in mine)
                {
                    AprioriMine.Items.Add(output);
                }
            }
            else
            {
                MessageBox.Show("No data found, Insert data");
            }
        }