itemset.cs

来自「数据挖掘Apriori算法」· CS 代码 · 共 50 行

CS
50
字号
using System;
using System.Collections.Generic;
using System.Text;

namespace MyAprioriAlg
{
    class ItemSet
    {
        List<string> _Item;
        int _SupportDegree;

        public List<string> Item
        {
            get
            {
                return _Item;
            }
            set
            {
                _Item = value;
            }
        }

        public int SupportDegree
        {
            get
            {
                return _SupportDegree;
            }
            set
            {
                _SupportDegree = value;
            }
        }

        public ItemSet(List<string> item, int supportDegree)
        {
            _Item = item;
            _SupportDegree = supportDegree;

        }

        public int AddSupprotDegree()
        {
            return _SupportDegree + 1;
        }

    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?