예제 #1
0
        public void FilterLocations(HashSet <long> allowedOffsets)
        {
            foreach (var region in MappedRegions)
            {
                region.AlignedLocations.RemoveAll(loc =>
                {
                    var offset = loc.Offset(region.Region);
                    return(!allowedOffsets.Contains(offset));
                });
            }

            MappedRegions.RemoveAll(region => region.AlignedLocations.Count == 0);
        }
예제 #2
0
 public double GetEstimatedCount()
 {
     return(MappedRegions.Sum(m => m.Mapped.Sum(n => n.Value.GetEstimatedCount())));
 }
예제 #3
0
 public double GetEstimateCount(Func <SAMAlignedLocation, bool> func)
 {
     return(MappedRegions.Sum(m => m.GetEstimatedCount(func)));
 }
예제 #4
0
 public double GetEstimatedCount()
 {
     return(MappedRegions.Sum(m => m.GetEstimatedCount()));
 }