Skip to contents

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

Usage

chronos_mean_scale(x, context = NULL)

Arguments

x

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

context

Optional; may be NULL. Coerced to integer by the body, with as.integer.

Value

A list with scaled, scale, degenerate, context, preserves_zero.

Examples

chronos_mean_scale(c(10, 12, 9, 11))$scale   # mean absolute value
#> [1] 10.5