powered by
Calculate sample quantiles from a t-Digest
tquantile(td, probs)# S3 method for tdigest quantile(x, probs = seq(0, 1, 0.25), ...)
# S3 method for tdigest quantile(x, probs = seq(0, 1, 0.25), ...)
a numeric vector containing the requested quantile values
numeric
t-Digest object
numeric vector of probabilities with values in range 0:1
numeric vector whose sample quantiles are wanted
unused
Computing Extremely Accurate Quantiles Using t-Digests
set.seed(1492) x <- sample(0:100, 1000000, replace = TRUE) td <- tdigest(x, 1000) tquantile(td, c(0, .01, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 0.99, 1)) quantile(td)
Run the code above in your browser using DataLab