public class ShortRateVolatilityModel extends Object implements ShortRateVolailityModelInterface
Constructor and Description |
---|
ShortRateVolatilityModel(TimeDiscretizationInterface timeDiscretization,
double[] volatility,
double[] meanReversion) |
Modifier and Type | Method and Description |
---|---|
double |
getMeanReversion(int timeIndex)
Returns the value of \( a(t) \) for \( t_{i} \leq t < t_{i+1} \).
|
TimeDiscretizationInterface |
getTimeDiscretization()
Returns the time discretization \( \{ t_{i} \} \) associated
with the piecewise constant functions.
|
double |
getVolatility(int timeIndex)
Returns the value of \( \sigma(t) \) for \( t_{i} \leq t < t_{i+1} \).
|
public ShortRateVolatilityModel(TimeDiscretizationInterface timeDiscretization, double[] volatility, double[] meanReversion)
public TimeDiscretizationInterface getTimeDiscretization()
ShortRateVolailityModelInterface
getTimeDiscretization
in interface ShortRateVolailityModelInterface
public double getVolatility(int timeIndex)
ShortRateVolailityModelInterface
getVolatility
in interface ShortRateVolailityModelInterface
timeIndex
- The index \( i \).public double getMeanReversion(int timeIndex)
ShortRateVolailityModelInterface
getMeanReversion
in interface ShortRateVolailityModelInterface
timeIndex
- The index \( i \).Copyright © 2018. All rights reserved.