Skip to contents

A step of the chronos_native implementation. Called by chronos_detokenize. See the file header for the source the module follows. the source it follows.

Usage

chronos_dequantize(tokens, bins)

Arguments

tokens

See Usage.

bins

A list; the body reads $centers from it.

Value

The value of out, as built in the body.

Examples

bins <- chronos_uniform_bins(lo = -3, hi = 3, n_bins = 12L)
chronos_dequantize(chronos_quantize(c(-2.5, 0, 0.4), bins)$tokens, bins)
#> [1] -2.4545455  0.2727273  0.2727273