# NOT RUN {
x = Empirical$new(stats::runif(1000)*10)
# d/p/q/r
x$pdf(1:5)
x$cdf(1:5) # Assumes ordered in construction
x$quantile(0.42) # Assumes ordered in construction
x$rand(10)
# Statistics
x$mean()
x$variance()
summary(x)
# }
Run the code above in your browser using DataLab