public IDictionary <Coordinates, int> GetDistributionByCoordinates() { return(_observations.GroupBy(x => x.ObservationPoint).ToDictionary(y => y.Key, s => s.Count())); }
public IDictionary <Coordinates, int> GetDistributionByCoordinates() { return(_energyObservationStorage.GroupBy(e => e, new ObservationPointEqualityComparer()) .ToDictionary(group => group.Key.ObservationPoint, group => group.Count())); }
public IDictionary <Coordinates, int> GetDistributionByCoordinates() { return(_observationStorage.GroupBy(obs => obs.ObservationPoint) .ToDictionary(k => k.Key, v => v.Count())); }