Skip to contents

The masses on 0, step, ..., negative round-off set to 0 and the sum rescaled to 1, for compound_distribution() and the risk measures on a grid.

Usage

chf_to_grid(x)

Arguments

x

A chf_distribution.

Examples

g <- chf_to_grid(invert_chf(gamma_distribution(4, 25), log2 = 12))
TVaR(g, 0.99)
#> [1] 284.1069