## esg.Cir


The Cox-Ingersoll-Ross short rate, `dr = a (b - r) dt + sigma sqrt(r) dW`.


Usage


``` python
esg.Cir()
```


## Parameters


`a: float`  
As for [Vasicek](esg.Vasicek.md#prospicio.esg.Vasicek); `r0` non-negative.

`b: float`  
As for [Vasicek](esg.Vasicek.md#prospicio.esg.Vasicek); `r0` non-negative.

`sigma: float`  
As for [Vasicek](esg.Vasicek.md#prospicio.esg.Vasicek); `r0` non-negative.

`r0: float`  
As for [Vasicek](esg.Vasicek.md#prospicio.esg.Vasicek); `r0` non-negative.


## Examples

``` python
>>> from prospicio.esg import Cir
>>> Cir(0.4, 0.03, 0.08, 0.02).feller()
```

True


## Methods

| Name | Description |
|----|----|
| [bond_price()](#bond_price) | The price of a zero-coupon bond of maturity [tau](esg.Svensson.md#prospicio.esg.Svensson.tau) at rate [r](distributions.NegativeBinomial.md#prospicio.distributions.NegativeBinomial.r). |
| [feller()](#feller) | Whether `2 a b >= sigma^2`, so the rate stays positive. |
| [mean()](#mean) | The mean of the rate at [t](distributions.Pareto.md#prospicio.distributions.Pareto.t) years. |
| [variance()](#variance) | The variance of the rate at [t](distributions.Pareto.md#prospicio.distributions.Pareto.t) years. |

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


#### bond_price()


The price of a zero-coupon bond of maturity [tau](esg.Svensson.md#prospicio.esg.Svensson.tau) at rate [r](distributions.NegativeBinomial.md#prospicio.distributions.NegativeBinomial.r).


Usage


``` python
bond_price(r, tau)
```


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


#### feller()


Whether `2 a b >= sigma^2`, so the rate stays positive.


Usage


``` python
feller()
```


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


#### mean()


The mean of the rate at [t](distributions.Pareto.md#prospicio.distributions.Pareto.t) years.


Usage


``` python
mean(t)
```


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


#### variance()


The variance of the rate at [t](distributions.Pareto.md#prospicio.distributions.Pareto.t) years.


Usage


``` python
variance(t)
```
