Skip to contents

The same events at times spread uniformly over the year: each year's losses take sorted uniform draws, in their order, from a stream of the generator keyed by the set's seed apart from the losses' own, so the losses are unchanged and any year replays alone. Reinstatements pro rata as to time (xol_layer(pro_rata_time = TRUE)) need them.

Usage

with_uniform_times(x)

Arguments

x

An event_set.

Value

An event_set whose losses carry times; event_times() reads them.

Examples

ev <- with_uniform_times(simulate_events(poisson_count(3), lognormal(0, 1), 10, seed = 1))
event_times(ev, 1)
#> [1] 0.9525944