## reserving.layer_share()


The layer's share of a severity's mean, `(LEV(b) - LEV(a)) / mean`,


Usage


``` python
reserving.layer_share(
    severity,
    layer,
)
```


on the ultimate basis.

An exposure curve's share comes from the curve, `curve.layer_share(limit, attachment, mpl)`, and goes to [layer_exposure](reserving.layer_exposure.md#prospicio.reserving.layer_exposure) the same way.


## Parameters


`severity: severity distribution`  
Any severity with exact limited moments.

`layer: ExcessLayer`  


## Returns


`float`  


## Examples

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

0.125
