コード例 #1
0
        public HeatMapItemCollection InitMap(HeatMapItemCollection relations)
        {
            List <string> group1List = new List <string>();
            List <string> group2List = new List <string>();

            for (int i = 0; i < relations.Length(); i++)
            {
                if (!group1List.Contains(relations.FindItem(i).Group1Item))
                {
                    group1List.Add(relations.FindItem(i).Group1Item);
                }

                if (!group2List.Contains(relations.FindItem(i).Group2Item))
                {
                    group2List.Add(relations.FindItem(i).Group2Item);
                }
            }

            group1 = new string[group1List.Count];
            group2 = new string[group2List.Count];

            group1List.Sort();
            group2List.Sort();

            group1List.CopyTo(group1);
            group2List.CopyTo(group2);

            this.InitMap();

            return(collection);
        }
コード例 #2
0
        public HeatMapItemCollection BuildMap(HeatMapItemCollection relations)
        {
            for (int i = 0; i < relations.Length(); i++)
            {
                collection.FindItem(relations.FindItem(i).Group1Item, relations.FindItem(i).Group2Item).Increment();
            }

            return(collection);
        }