public bool IsGroupMember(StoneGroup group, StoneDay day) { return ( OfflineDB.GroupClusterHistories.Contains ( new GroupClusterHistory(day.Number, group.Number, this.Prefix).ToBinaryValue() ) ); }
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; }