## pricing.distortion_envelope()


The smallest and largest `g(s)` at each `s` over every distortion


Usage


``` python
pricing.distortion_envelope(
    x,
    premium,
    s,
    assets=None,
)
```


that prices [x](distributions.Ogive.md#prospicio.distributions.Ogive.x) at [premium](pricing.Price.md#prospicio.pricing.Price.premium): [aggregate](aggregate.Clash.md#prospicio.aggregate.Clash.aggregate)'s `Bounds` envelopes, exact (each is the price range of a Bernoulli risk with `P(1) = s`).


## Parameters


`x: (Sampled, Grid or PredictiveDistribution)`  

`premium: float`  

`s: list of float`  
Levels in \[0, 1\].

`assets: float = None`  
Cap [x](distributions.Ogive.md#prospicio.distributions.Ogive.x) at the assets.


## Returns


`tuple of (list of float, list of float)`  
The lower envelope (a concave distortion) and the upper.
