Exemplo n.º 1
0
 public bool IsGroupMember(StoneGroup group, StoneDay day)
 {
     return
         (
         DB
         .NewContext()
         .GroupClusterHistories
         .Count(x => x.Day == day.Number && x.GroupNumber == group.Number && x.ClusterPrefix == this.Prefix) > 0
         );
 }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public StoneGroupChanel(StoneGroup group)
 {
     this.Group = group;
 }