Beispiel #1
0
 public bool IsGroupMember(StoneGroup group, StoneDay day)
 {
     return
         (
         OfflineDB.GroupClusterHistories.Contains
         (
             new GroupClusterHistory(day.Number, group.Number, this.Prefix).ToBinaryValue()
         )
         );
 }
Beispiel #2
0
        public double ProbabilityInGroup(StoneGroup group)
        {
            double sum = 0;

            foreach (var day in ProfileMaintainer.Days)
            {
                if (this.
                    IsGroupMember(group, day))
                {
                    sum += day.Weight;
                }
            }
            return(sum);
        }
 public StoneGroupChanel(StoneGroup group)
 {
     this.Group = group;
 }