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