public FormApriori(TransactionDB _transact) { InitializeComponent(); // transact = new TransactionDB(); this.transact = _transact; textBox_Support.Text = "2"; }
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; }
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; }
int supportThreshold; // минимальное значение поддержки public FormAprioriAll(TransactionDB tidDB) { InitializeComponent(); textBox_minSuppSeq.Text = "2"; this.tidDataBase = tidDB; }