public class VarianceGammaModel extends AbstractProcessModel
VarianceGammaProcess.The interface for numerical schemes.,
The interface for models provinding parameters to numerical schemes.| Constructor and Description |
|---|
VarianceGammaModel(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.
|
VarianceGammaModel(double initialValue,
double riskFreeRate,
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(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.
|
| Modifier and Type | Method and Description |
|---|---|
RandomVariable |
applyStateSpaceTransform(int componentIndex,
RandomVariable randomVariable)
Applies the state space transform fi to the given state random variable
such that Yi → fi(Yi) =: Xi.
|
RandomVariable |
applyStateSpaceTransformInverse(int componentIndex,
RandomVariable randomVariable) |
ProcessModel |
getCloneWithModifiedData(Map<String,Object> dataModified)
Returns a clone of this model where the specified properties have been modified.
|
DiscountCurve |
getDiscountCurveForDiscountRate() |
DiscountCurve |
getDiscountCurveForForwardRate() |
double |
getDiscountRate() |
RandomVariable[] |
getDrift(int timeIndex,
RandomVariable[] realizationAtTimeIndex,
RandomVariable[] realizationPredictor)
This method has to be implemented to return the drift, i.e.
|
RandomVariable[] |
getFactorLoading(int timeIndex,
int componentIndex,
RandomVariable[] realizationAtTimeIndex)
This method has to be implemented to return the factor loadings, i.e.
|
RandomVariable[] |
getInitialState()
Returns the initial value of the state variable of the process Y, not to be
confused with the initial value of the model X (which is the state space transform
applied to this state value.
|
double |
getNu() |
int |
getNumberOfComponents()
Returns the number of components
|
RandomVariable |
getNumeraire(double time)
Return the numeraire at a given time index.
|
RandomVariable |
getRandomVariableForConstant(double value)
Return a random variable initialized with a constant using the models random variable factory.
|
double |
getRiskFreeRate() |
double |
getSigma() |
double |
getTheta() |
String |
toString() |
getInitialValue, getMonteCarloWeights, getNumberOfFactors, getProcess, getProcessValue, getReferenceDate, getTime, getTimeDiscretization, getTimeIndex, setProcesspublic VarianceGammaModel(double initialValue,
DiscountCurve discountCurveForForwardRate,
DiscountCurve discountCurveForDiscountRate,
double sigma,
double theta,
double nu)
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).discountRate - The constant rate used for discounting.sigma - The parameter \( \sigma \)theta - The parameter \( \theta \)nu - The parameter \( \nu \)public VarianceGammaModel(double initialValue,
double riskFreeRate,
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 \)public int getNumberOfComponents()
ProcessModelpublic RandomVariable applyStateSpaceTransform(int componentIndex, RandomVariable randomVariable)
ProcessModelcomponentIndex - The component index i.randomVariable - The state random variable Yi.public RandomVariable applyStateSpaceTransformInverse(int componentIndex, RandomVariable randomVariable)
public RandomVariable[] getInitialState()
ProcessModelpublic RandomVariable getNumeraire(double time) throws CalculationException
ProcessModeltime - The time t for which the numeraire N(t) should be returned.RandomVariableFromDoubleArrayCalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.public RandomVariable[] getDrift(int timeIndex, RandomVariable[] realizationAtTimeIndex, RandomVariable[] realizationPredictor)
ProcessModeltimeIndex - The time index (related to the model times discretization).realizationAtTimeIndex - The given realization at timeIndexrealizationPredictor - The given realization at timeIndex+1 or null if no predictor is available.public RandomVariable[] getFactorLoading(int timeIndex, int componentIndex, RandomVariable[] realizationAtTimeIndex)
ProcessModeltimeIndex - The time index (related to the model times discretization).componentIndex - The index j of the driven component.realizationAtTimeIndex - The realization of X at the time corresponding to timeIndex (in order to implement local and stochastic volatlity models).public RandomVariable getRandomVariableForConstant(double value)
ProcessModelvalue - The constant value.public ProcessModel getCloneWithModifiedData(Map<String,Object> dataModified) throws CalculationException
ProcessModeldataModified. If data is provided which is ignored by the model
no exception may be thrown.dataModified - Key-value-map of parameters to modify.CalculationException - Thrown when the model could not be created.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.