Exemplo n.º 1
0
        private void GetSupport(List <ItemKey> itemKeys, double minSupport)
        {
            var records = new AprioriRecords();

            foreach (ItemKey itemKey in itemKeys)
            {
                int count = _dataset.GetSupport(itemKey);
                if (count >= minSupport)
                {
                    var record = new AprioriRecord(itemKey, count);
                    records.Add(record);
                    _resultDict[itemKey.CombinationId] = record;
                }
            }

            var subKeys = records.GetAllCombinationIds2();

            if (subKeys.Count == 0)
            {
                return;
            }
            else
            {
                GetSupport(subKeys, minSupport);
            }
        }
Exemplo n.º 2
0
 internal void Add(AprioriRecord record)
 {
     _records.Add(record);
 }