public EnvironmentalLayerRange GetRangeForPoints(IEnumerable <ModelPoint> points, double percentile) { var values = new PointValueList(); foreach (ModelPoint p in points) { var value = GetValueAt(p.Y, p.X, NoValueMarker); if (value == NoValueMarker) { } else { values.AddValue(value); } } return(new EnvironmentalLayerRange { Max = values.GetUpper(percentile), Min = values.GetLower(percentile), Percentile = percentile }); }
public EnvironmentalLayerRange GetRangeForPoints(IEnumerable<ModelPoint> points, double percentile) { var values = new PointValueList(); foreach (ModelPoint p in points) { var value = GetValueAt(p.Y, p.X, NoValueMarker); if (value == NoValueMarker) { } else { values.AddValue(value); } } return new EnvironmentalLayerRange { Max = values.GetUpper(percentile), Min = values.GetLower(percentile), Percentile = percentile }; }