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_uniform_bins(lo = -15, hi = 15, n_bins = 4096L)

Arguments

lo

Coerced to numeric by the body, with as.numeric. Defaults to -15.

hi

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

n_bins

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

Value

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

Examples

str(chronos_uniform_bins(lo = -1, hi = 1, n_bins = 5L))
#> List of 5
#>  $ centers: num [1:5] -1 -0.5 0 0.5 1
#>  $ edges  : num [1:4] -0.75 -0.25 0.25 0.75
#>  $ n_bins : int 5
#>  $ scheme : chr "uniform"
#>  $ range  : num [1:2] -1 1