コード例 #1
0
 public FormApriori(TransactionDB _transact)
 {
     InitializeComponent();
     // transact = new TransactionDB();
     this.transact        = _transact;
     textBox_Support.Text = "2";
 }
コード例 #2
0
        Dictionary <int, List <List <string> > > sequenceDict; // словарь для секвенциального анализа

        /*-------------------------methods----------------------------------------*/
        public Apriori(TransactionDB trans, int min_supp)
        {
            itemSetList       = new List <ItemSet>();
            transactions      = new TransactionDB();
            this.transactions = trans;
            this.minSupp      = min_supp;
            this.transCount   = trans.transCount - 1;
        }
コード例 #3
0
        public AprioriAll(TransactionDB tidDataBase, int min_supp)
        {
            tidDictionary     = tidDataBase.tidDict;
            cidDictionary     = tidDataBase.cidDict;
            sortedSeqDict     = new Dictionary <int, List <List <string> > >();
            numSeqDict        = new Dictionary <List <string>, int>();
            Litemsets         = new Dictionary <List <string>, int>();
            sequencePhaseDict = new Dictionary <List <string>, int>();
            sortedIDsDict     = new Dictionary <int, List <List <int> > >();

            sortedSeqDict = SortPhase();


            minSupp      = min_supp;
            firstItemSet = new ItemSetSeq();
            transCount   = tidDataBase.transCount;
        }
コード例 #4
0
        int supportThreshold; // минимальное значение поддержки

        public FormAprioriAll(TransactionDB tidDB)
        {
            InitializeComponent();
            textBox_minSuppSeq.Text = "2";
            this.tidDataBase        = tidDB;
        }