Skip to contents

affine_distribution() is the loss scale * X + shift for a severity X, as aggregate's 10 * lognorm 1 + 20: its distribution function is F((x - shift) / scale), and every layer moment is exact, from the inner severity's. Properties: d@scale, d@shift, d@family (the inner severity's).

Usage

affine_distribution(severity, scale = 1, shift = 0, ptr = NULL)

Arguments

severity

Any severity but a sampled distribution.

scale

Positive.

shift

Non-negative, so that the result is a loss.

ptr

Internal: an existing object to wrap.

Value

An affine_distribution, which inherits from distribution.

Details

Supports the same operations as pareto.

Examples

y <- affine_distribution(lognormal(0, 1), scale = 10, shift = 20)
mean(y)
#> [1] 36.48721
cdf(y, 20)
#> [1] 0