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); }
public double GetEstimatedCount() { return(MappedRegions.Sum(m => m.Mapped.Sum(n => n.Value.GetEstimatedCount()))); }
public double GetEstimateCount(Func <SAMAlignedLocation, bool> func) { return(MappedRegions.Sum(m => m.GetEstimatedCount(func))); }
public double GetEstimatedCount() { return(MappedRegions.Sum(m => m.GetEstimatedCount())); }