## aggregate.Leg


One cash flow of a [Group](aggregate.Group.md#prospicio.aggregate.Group): a constant, or a function of the


Usage


``` python
aggregate.Leg()
```


source's value, written as a positive magnitude; the group's role signs it. A function is called once with all the source's values (a numpy array when numpy is installed, else a list) and returns one value per value, or a single number.


## Parameters


`label: str`  
Unique across the ledger.

`value: float or callable`  

`kind: str`  
[premium](pricing.Price.md#prospicio.pricing.Price.premium), [loss](pricing.Pentagon.md#prospicio.pricing.Pentagon.loss), `expense`, [recovery](reinsurance.Reinsurer.md#prospicio.reinsurance.Reinsurer.recovery) or [commission](pricing.Quote.md#prospicio.pricing.Quote.commission).

`step: float`  
Put the leg's own distribution on a grid of this step ([aggregate](aggregate.Clash.md#prospicio.aggregate.Clash.aggregate)'s `bs`), scattering each value linearly to its two neighbours, which keeps its mean. Only its marginal quantiles change; its mean, the sums down the sheet and the scenario columns stay exact. [Ledger.validation()](aggregate.Ledger.md#prospicio.aggregate.Ledger.validation) compares the two means.


## Examples

``` python
>>> from prospicio.aggregate import Leg
>>> Leg("Loss", lambda x: x, kind="loss")
```

Leg("Loss")


## Attributes

| Name | Description |
|----|----|
| [label](#label) | The label. |

------------------------------------------------------------------------


#### label


The label.


`label: str`
