## reserving.layer_at_shift()


The expected loss to the layer of one claim at the maturity whose


Usage


``` python
reserving.layer_at_shift(
    ultimate,
    layer,
    shift,
)
```


claims are the ultimate ones divided by [shift](distributions.Affine.md#prospicio.distributions.Affine.shift): `(LEV(c b) - LEV(c a)) / c`. With `shift = 1` it is the layer at ultimate.


## Parameters


`ultimate: severity distribution`  
The ultimate severity.

`layer: ExcessLayer`  

`shift: float`  
The scale shift `c` (`X_ultimate = c X_j`), positive.


## Returns


`float`  


## Examples

``` python
>>> from prospicio.distributions import Pareto
>>> from prospicio.reserving import ExcessLayer, layer_at_shift
>>> round(layer_at_shift(Pareto(1.0, 2.0), ExcessLayer(4.0), 1.0), 12)
```

0.25
