public class VarianceGammaModel extends Object implements CharacteristicFunctionModel
Constructor and Description |
---|
VarianceGammaModel(double initialValue,
double riskFreeRate,
double discountRate,
double sigma,
double theta,
double nu)
Construct a Variance Gamma model with constant rates for the forward price (i.e. repo rate minus dividend yield) and for the discount curve.
|
VarianceGammaModel(LocalDate referenceDate,
double initialValue,
DiscountCurve discountCurveForForwardRate,
DiscountCurve discountCurveForDiscountRate,
double sigma,
double theta,
double nu)
Construct a Variance Gamma model with discount curves for the forward price (i.e. repo rate minus dividend yield) and for discounting.
|
Modifier and Type | Method and Description |
---|---|
CharacteristicFunction |
apply(double time)
Returns the characteristic function of X(t), where X is
this stochastic process. |
DiscountCurve |
getDiscountCurveForDiscountRate() |
DiscountCurve |
getDiscountCurveForForwardRate() |
double |
getDiscountRate() |
double |
getInitialValue() |
double |
getNu() |
LocalDate |
getReferenceDate() |
double |
getRiskFreeRate() |
double |
getSigma() |
double |
getTheta() |
String |
toString() |
public VarianceGammaModel(LocalDate referenceDate, double initialValue, DiscountCurve discountCurveForForwardRate, DiscountCurve discountCurveForDiscountRate, double sigma, double theta, double nu)
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 ratediscountCurveForDiscountRate
- The curve specifying \( t \mapsto exp(- r^{\text{d}}(t) \cdot t) \) - with \( r^{\text{d}}(t) \) the discount ratesigma
- The parameter \( \sigma \)theta
- The parameter \( \theta \)nu
- The parameter \( \nu \)public VarianceGammaModel(double initialValue, double riskFreeRate, double discountRate, double sigma, double theta, double nu)
initialValue
- \( S_{0} \) - spot - initial value of SriskFreeRate
- The constant risk free rate for the drift (repo rate of the underlying).sigma
- The parameter \( \sigma \)theta
- The parameter \( \theta \)nu
- The parameter \( \nu \)discountRate
- The constant rate used for discounting.public CharacteristicFunction apply(double time)
CharacteristicFunctionModel
this
stochastic process.apply
in interface CharacteristicFunctionModel
time
- The time at which the stochastic process is observed.public LocalDate getReferenceDate()
FloatingpointDate
s.public double getInitialValue()
public DiscountCurve getDiscountCurveForForwardRate()
public double getRiskFreeRate()
public DiscountCurve getDiscountCurveForDiscountRate()
public double getDiscountRate()
public double getSigma()
public double getTheta()
public double getNu()
Copyright © 2019. All rights reserved.