public static SummarySample Sample(this ISummary summary, double quantile) => summary.Value().Samples.First(s => s.Quantile == quantile);
public static double Sum(this ISummary summary) => summary.Value().Sum;
public static long Count(this ISummary summary) => summary.Value().Count;
public static SummarySample?Sample(this ISummary summary, string label, double quantile) => summary.Value(label)?.Samples.First(s => s.Quantile == quantile);
public static double?Sum(this ISummary summary, string label) => summary.Value(label)?.Sum;
public static long?Count(this ISummary summary, string label) => summary.Value(label)?.Count;