## esg.HullWhite


The Hull-White one-factor short rate, fitted to an initial curve.


Usage


``` python
esg.HullWhite()
```


## Parameters


`a: float`  
The speed of mean reversion, positive.

`sigma: float`  
The volatility, positive.

`maturities: list of float`  
The initial curve as annually compounded spot rates by maturity.

`rates: list of float`  
The initial curve as annually compounded spot rates by maturity.

`svensson: Svensson`  
The initial curve as a Svensson curve, instead of [maturities](esg.Scenarios.md#prospicio.esg.Scenarios.maturities) and [rates](reserving.DiscountCurve.md#prospicio.reserving.DiscountCurve.rates).


## Examples

``` python
>>> from prospicio.esg import HullWhite
>>> hw = HullWhite(0.1, 0.01, maturities=[1.0, 10.0], rates=[0.03, 0.04])
>>> round(hw.discount(1.0), 6)
```

0.970874


## Methods

| Name | Description |
|----|----|
| [discount()](#discount) | The initial curve's discount factor at [t](distributions.Pareto.md#prospicio.distributions.Pareto.t) years. |
| [forward()](#forward) | The initial curve's instantaneous forward rate at [t](distributions.Pareto.md#prospicio.distributions.Pareto.t) years. |

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


#### discount()


The initial curve's discount factor at [t](distributions.Pareto.md#prospicio.distributions.Pareto.t) years.


Usage


``` python
discount(t)
```


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


#### forward()


The initial curve's instantaneous forward rate at [t](distributions.Pareto.md#prospicio.distributions.Pareto.t) years.


Usage


``` python
forward(t)
```
