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)); }
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)); }
public int GetInDecks(SourceEnum?source = null) { return(source == null ? Decks.GroupBy(x => x.Key.DuplicateIndicatior).Count() : Decks.Count(x => x.Key.Source == source.Value)); }