td_value_at: Return the value at the specified quantile

View source: R/create.R

td_value_atR Documentation

Return the value at the specified quantile

Description

Return the value at the specified quantile

Usage

td_value_at(td, q)

## S3 method for class 'tdigest'
x[i, ...]

Arguments

td

t-Digest object

q

quantile (range 0:1)

x

a tdigest object

i

quantile (range 0:1)

...

unused

Value

the computed quantile (double)

Examples

td <- td_create(10)

td_add(td, 0, 1) %>%
  td_add(10, 1)

td_value_at(td, 0.1)
td_value_at(td, 0.5)
td[0.1]
td[0.5]

tdigest documentation built on Oct. 5, 2022, 1:07 a.m.

Related to td_value_at in tdigest...