public class HestonModel extends Object implements Model<HestonModelDescriptor>, ProcessCharacteristicFunctionInterface
Constructor and Description |
---|
HestonModel(double initialValue,
DiscountCurveInterface discountCurveForForwardRate,
double volatility,
DiscountCurveInterface discountCurveForDiscountRate,
double theta,
double kappa,
double xi,
double rho)
Create a Heston model (characteristic function)
|
HestonModel(double initialValue,
double riskFreeRate,
double volatility,
double theta,
double kappa,
double xi,
double rho) |
HestonModel(double initialValue,
double riskFreeRate,
double volatility,
double discountRate,
double theta,
double kappa,
double xi,
double rho)
Create a Heston model (characteristic function)
|
HestonModel(HestonModelDescriptor descriptor)
Create a model from a model desciptor.
|
HestonModel(LocalDate referenceDate,
double initialValue,
DiscountCurveInterface discountCurveForForwardRate,
double volatility,
DiscountCurveInterface discountCurveForDiscountRate,
double theta,
double kappa,
double xi,
double rho)
Create a Heston model (characteristic function)
|
Modifier and Type | Method and Description |
---|---|
CharacteristicFunctionInterface |
apply(double time)
Returns the characteristic function of X(t), where X is
this stochastic process. |
HestonModelDescriptor |
getDescriptor()
Return a model descriptor representing this model.
|
Product<? extends ProductDescriptor> |
getProductFromDesciptor(ProductDescriptor productDescriptor)
Construct a product from a product descriptor, which may be valued by this mmodel.
|
public HestonModel(HestonModelDescriptor descriptor)
descriptor
- A Heston model descriptor.public HestonModel(LocalDate referenceDate, double initialValue, DiscountCurveInterface discountCurveForForwardRate, double volatility, DiscountCurveInterface discountCurveForDiscountRate, double theta, double kappa, double xi, double rho)
referenceDate
- The date representing the time t = 0. All other double times are following FloatingpointDate
.initialValue
- \( S_{0} \) - spot - initial value of SdiscountCurveForForwardRate
- The curve specifying \( t \mapsto exp(- r^{\text{c}}(t) \cdot t) \) - with \( r^{\text{c}}(t) \) the risk free ratevolatility
- \( \sigma \) the initial volatility leveldiscountCurveForDiscountRate
- The curve specifying \( t \mapsto exp(- r^{\text{d}}(t) \cdot t) \) - with \( r^{\text{d}}(t) \) the discount ratetheta
- \( \theta \) - the mean reversion level of the stochastic volatilitykappa
- \( \kappa \) - the mean reversion speed of the stochastic volatilityxi
- \( \xi \) - the volatility of volatilityrho
- \( \rho \) - the correlation of the Brownian driverspublic HestonModel(double initialValue, DiscountCurveInterface discountCurveForForwardRate, double volatility, DiscountCurveInterface discountCurveForDiscountRate, double theta, double kappa, double xi, double rho)
initialValue
- \( S_{0} \) - spot - initial value of SdiscountCurveForForwardRate
- The curve specifying \( t \mapsto exp(- r^{\text{c}}(t) \cdot t) \) - with \( r^{\text{c}}(t) \) the risk free ratevolatility
- \( \sigma \) the initial volatility leveldiscountCurveForDiscountRate
- The curve specifying \( t \mapsto exp(- r^{\text{d}}(t) \cdot t) \) - with \( r^{\text{d}}(t) \) the discount ratetheta
- \( \theta \) - the mean reversion level of the stochastic volatilitykappa
- \( \kappa \) - the mean reversion speed of the stochastic volatilityxi
- \( \xi \) - the volatility of volatilityrho
- \( \rho \) - the correlation of the Brownian driverspublic HestonModel(double initialValue, double riskFreeRate, double volatility, double discountRate, double theta, double kappa, double xi, double rho)
initialValue
- \( S_{0} \) - spot - initial value of SriskFreeRate
- \( r^{\text{c}} \) - the risk free ratevolatility
- \( \sigma \) the initial volatility leveldiscountRate
- \( r^{\text{d}} \) - the discount ratetheta
- \( \theta \) - the mean reversion level of the stochastic volatilitykappa
- \( \kappa \) - the mean reversion speed of the stochastic volatilityxi
- \( \xi \) - the volatility of volatilityrho
- \( \rho \) - the correlation of the Brownian driverspublic HestonModel(double initialValue, double riskFreeRate, double volatility, double theta, double kappa, double xi, double rho)
public CharacteristicFunctionInterface apply(double time)
ProcessCharacteristicFunctionInterface
this
stochastic process.apply
in interface ProcessCharacteristicFunctionInterface
time
- The time at which the stochastic process is observed.public HestonModelDescriptor getDescriptor()
Model
getDescriptor
in interface Model<HestonModelDescriptor>
public Product<? extends ProductDescriptor> getProductFromDesciptor(ProductDescriptor productDescriptor)
Model
getProductFromDesciptor
in interface Model<HestonModelDescriptor>
productDescriptor
- Given product descriptor.Copyright © 2018. All rights reserved.