public class InhomogeneousDisplacedLognomalModel extends AbstractModel
AbstractProcessInterface via the specification of
\( f = \text{identity} \), \( \mu = \frac{exp(r \Delta t_{i}) - 1}{\Delta t_{i}} S(t_{i}) \), \( \lambda_{1,1} = \sigma \frac{exp(-2 r t_{i}) - exp(-2 r t_{i+1})}{2 r \Delta t_{i}} \), i.e.,
of the SDE
\[
dX = \mu dt + \lambda_{1,1} dW, \quad X(0) = \log(S_{0}),
\]
with \( S = X \). See AbstractProcessInterface for the notation.The interface for numerical schemes.,
The interface for models provinding parameters to numerical schemes.| Constructor and Description |
|---|
InhomogeneousDisplacedLognomalModel(double initialValue,
double riskFreeRate,
double displacement,
double volatility)
Create a blended normal/lognormal model.
|
InhomogeneousDisplacedLognomalModel(double initialValue,
double riskFreeRate,
double displacement,
double volatility,
boolean isUseMilsteinCorrection)
Create a blended normal/lognormal model.
|
| Modifier and Type | Method and Description |
|---|---|
RandomVariableInterface |
applyStateSpaceTransform(int componentIndex,
RandomVariableInterface randomVariable)
Applied the state space transform fi to the given state random variable
such that Yi → fi(Yi) =: Xi.
|
InhomogeneousDisplacedLognomalModel |
getCloneWithModifiedData(Map<String,Object> dataModified)
Returns a clone of this model where the specified properties have been modified.
|
RandomVariableInterface[] |
getDrift(int timeIndex,
RandomVariableInterface[] realizationAtTimeIndex,
RandomVariableInterface[] realizationPredictor)
This method has to be implemented to return the drift, i.e.
|
RandomVariableInterface[] |
getFactorLoading(int timeIndex,
int component,
RandomVariableInterface[] realizationAtTimeIndex)
This method has to be implemented to return the factor loadings, i.e.
|
RandomVariableInterface[] |
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.
|
int |
getNumberOfComponents()
Returns the number of components
|
RandomVariableInterface |
getNumeraire(double time)
Return the numeraire at a given time index.
|
RandomVariableInterface |
getRandomVariableForConstant(double value)
Return a random variable initialized with a constant using the models random variable factory.
|
double |
getRiskFreeRate()
Returns the risk free rate parameter of this model.
|
double |
getVolatility()
Returns the volatility parameter of this model.
|
String |
toString() |
getInitialValue, getMonteCarloWeights, getNumberOfFactors, getProcess, getProcessValue, getTime, getTimeDiscretization, getTimeIndex, setProcesspublic InhomogeneousDisplacedLognomalModel(double initialValue,
double riskFreeRate,
double displacement,
double volatility,
boolean isUseMilsteinCorrection)
initialValue - Spot value.riskFreeRate - The risk free rate.displacement - The displacement parameter d.volatility - The volatility.isUseMilsteinCorrection - If true, the drift will include the Milstein correction (making an Euler scheme a Milstein scheme).public InhomogeneousDisplacedLognomalModel(double initialValue,
double riskFreeRate,
double displacement,
double volatility)
initialValue - Spot value.riskFreeRate - The risk free rate.displacement - The displacement parameter d.volatility - The volatility.public RandomVariableInterface[] getInitialState()
AbstractModelInterfacepublic RandomVariableInterface[] getDrift(int timeIndex, RandomVariableInterface[] realizationAtTimeIndex, RandomVariableInterface[] realizationPredictor)
AbstractModelInterfacetimeIndex - 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 RandomVariableInterface[] getFactorLoading(int timeIndex, int component, RandomVariableInterface[] realizationAtTimeIndex)
AbstractModelInterfacetimeIndex - The time index (related to the model times discretization).component - 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 RandomVariableInterface applyStateSpaceTransform(int componentIndex, RandomVariableInterface randomVariable)
AbstractModelInterfacecomponentIndex - The component index i.randomVariable - The state random variable Yi.public RandomVariableInterface getNumeraire(double time)
AbstractModelInterfacetime - The time t for which the numeraire N(t) should be returned.RandomVariablepublic int getNumberOfComponents()
AbstractModelInterfacepublic RandomVariableInterface getRandomVariableForConstant(double value)
AbstractModelInterfacevalue - The constant value.public InhomogeneousDisplacedLognomalModel getCloneWithModifiedData(Map<String,Object> dataModified)
AbstractModelInterfacedataModified. If data is provided which is ignored by the model
no exception may be thrown.dataModified - Key-value-map of parameters to modify.public double getRiskFreeRate()
public double getVolatility()
Copyright © 2017. All rights reserved.