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_forecast_summary(token_probs, bins, quantiles = c(0.1, 0.5, 0.9))

Arguments

token_probs

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

bins

A list; the body reads $centers from it.

quantiles

Coerced to numeric by the body, with as.numeric. Defaults to c(0.1, 0.5, 0.9).

Value

A list with mean, quantiles, mode, note.

Examples

bins <- chronos_uniform_bins(lo = -3, hi = 3, n_bins = 7L)
p <- c(0, 0.05, 0.2, 0.5, 0.2, 0.05, 0)
chronos_forecast_summary(p, bins)[c("mean", "mode")]
#> $mean
#> [1] 0
#> 
#> $mode
#> [1] 0
#>