[Stable]

dist_percentile(x, percentile)

Arguments

x

A list of values

percentile

A list of percentiles

Examples

dist <- dist_normal()
percentiles <- seq(0.01, 0.99, by = 0.01)
x <- vapply(percentiles, quantile, double(1L), x = dist)
dist_percentile(list(x), list(percentiles*100))
#> <distribution[1]>
#> [1] percentile[99]