Quantiles of a distribution function created by
make_dist (and so by weighted_ecdf and
combine_ecdfs), computed by inverting it directly: for a
step function, the smallest support point \(y\) with
\(F(y) \ge p\) (the generalized inverse, type = 1 in
quantile); for method = "linear", the
inverse of the piecewise-linear \(F\).
Sample-quantile types other than 1 interpolate between order statistics
of a sample, which a weighted distribution function doesn't have, so
type is ignored (with a warning if it isn't 1).
Examples
F <- weighted_ecdf(c(0, 1), weights = c(0.4, 0.6))
quantile(F, 0.5) # 1
#> 50%
#> 1
