Пример #1
0
 public double GetApperences(SourceEnum?source = null)
 {
     return(source == null
                ? Decks.GroupBy(x => x.Key.DuplicateIndicatior).Sum(x => x.Average(y => y.Value))
                : Decks.Where(x => x.Key.Source == source.Value).Sum(x => x.Value));
 }
Пример #2
0
 public double GetTier(SourceEnum?source = null)
 {
     return(source == null
                ? Decks.GroupBy(x => x.Key.DuplicateIndicatior).Sum(x => x.Average(y => y.Key.Tier)) / GetInDecks()
                : Decks.Where(x => x.Key.Source == source.Value).Sum(x => x.Key.Tier) / (double)GetInDecks(source));
 }
Пример #3
0
 public int GetInDecks(SourceEnum?source = null)
 {
     return(source == null
                ? Decks.GroupBy(x => x.Key.DuplicateIndicatior).Count()
                : Decks.Count(x => x.Key.Source == source.Value));
 }