Skip to contents

A step of the chronos_native implementation. No other function in the package calls it. See the file header for the source the module follows. the source it follows.

Usage

chronos_quantile_bins(samples, n_bins = 4096L)

Arguments

samples

Coerced to numeric by the body, with as.numeric.

n_bins

Coerced to integer by the body, with as.integer. Defaults to 4096L.

Value

A list with centers, edges, n_bins, scheme, range, caveat.

Examples

set.seed(28)
b <- chronos_quantile_bins(rnorm(500), n_bins = 8L)
round(b$edges, 2)
#> [1] -1.38 -0.85 -0.45 -0.06  0.26  0.58  1.08