public class LIBORMarketModelFromCovarianceModel extends AbstractProcessModel implements LIBORMarketModel, Serializable
LIBORCovarianceModel for the specification of
(λ1,j,...,λm,j) as a covariance model.
See ProcessModel for details on the implemented interface
property.set("stateSpace","NORMAL"))
ProcessModel for details on the implemented interface.
AbstractLIBORCovarianceModel as a covariance model.
If the covariance model is of type AbstractLIBORCovarianceModelParametric
a calibration to swaptions can be performed.
properties allows to configure the model. The following keys may be used:
measure: Possible values:
SPOT: Simulate under spot measure. In this case, the single curve numeraire
is \( N(T_{i}) = \prod_{j=0}^{i-1} (1 + L(T_{j},T_{j+1};T_{j}) (T_{j+1}-T_{j})) \).
TERMINAL: Simulate under terminal measure. In this case, the single curve numeraire
is \( N(T_{i}) = P(T_{n};T_{i}) = \prod_{j=i}^{n-1} (1 + L(T_{j},T_{j+1};T_{i}) (T_{j+1}-T_{j}))^{-1} \).
stateSpace: Possible values:
LOGNORMAL: The state space transform is set to exp, i.e., L = exp(Y). When the covariance model is deterministic, then this is the classical lognormal LIBOR market model. Note that the covariance model may still provide a local volatility function.
NORMAL: The state space transform is set to identity, i.e., L = Y. When the covariance model is deterministic, then this is a normal LIBOR market model. Note that the covariance model may still provide a local volatility function.
liborCap: An optional Double value applied as a cap to the LIBOR rates.
May be used to limit the simulated valued to prevent values attaining POSITIVE_INFINITY and
numerical problems. To disable the cap, set liborCap to Double.POSITIVE_INFINITY.
AbstractLIBORCovarianceModelParametric.getCloneCalibrated(LIBORMarketModel, CalibrationProduct[], Map).| Modifier and Type | Class and Description |
|---|---|
static class |
LIBORMarketModelFromCovarianceModel.Driftapproximation |
static class |
LIBORMarketModelFromCovarianceModel.InterpolationMethod |
static class |
LIBORMarketModelFromCovarianceModel.Measure |
static class |
LIBORMarketModelFromCovarianceModel.StateSpace |
| Constructor and Description |
|---|
LIBORMarketModelFromCovarianceModel(TimeDiscretization liborPeriodDiscretization,
AnalyticModel analyticModel,
ForwardCurve forwardRateCurve,
DiscountCurve discountCurve,
AbstractRandomVariableFactory randomVariableFactory,
LIBORCovarianceModel covarianceModel,
CalibrationProduct[] calibrationProducts,
Map<String,?> properties)
Deprecated.
Use LIBORMarketModelFromCovarianceModel.of() instead.
|
LIBORMarketModelFromCovarianceModel(TimeDiscretization liborPeriodDiscretization,
AnalyticModel analyticModel,
ForwardCurve forwardRateCurve,
DiscountCurve discountCurve,
AbstractRandomVariableFactory randomVariableFactory,
LIBORCovarianceModel covarianceModel,
Map<String,?> properties)
Creates a LIBOR Market Model for given covariance.
|
LIBORMarketModelFromCovarianceModel(TimeDiscretization liborPeriodDiscretization,
AnalyticModel analyticModel,
ForwardCurve forwardRateCurve,
DiscountCurve discountCurve,
LIBORCovarianceModel covarianceModel,
CalibrationProduct[] calibrationItems,
Map<String,?> properties)
Deprecated.
Use LIBORMarketModelFromCovarianceModel.of() instead.
|
LIBORMarketModelFromCovarianceModel(TimeDiscretization liborPeriodDiscretization,
ForwardCurve forwardRateCurve,
DiscountCurve discountCurve,
LIBORCovarianceModel covarianceModel)
Creates a LIBOR Market Model for given covariance.
|
LIBORMarketModelFromCovarianceModel(TimeDiscretization liborPeriodDiscretization,
ForwardCurve forwardRateCurve,
DiscountCurve discountCurve,
LIBORCovarianceModel covarianceModel,
AbstractSwaptionMarketData swaptionMarketData)
Creates a LIBOR Market Model for given covariance.
|
LIBORMarketModelFromCovarianceModel(TimeDiscretization liborPeriodDiscretization,
ForwardCurve forwardRateCurve,
DiscountCurve discountCurve,
LIBORCovarianceModel covarianceModel,
AbstractSwaptionMarketData swaptionMarketData,
Map<String,?> properties)
Creates a LIBOR Market Model for given covariance.
|
LIBORMarketModelFromCovarianceModel(TimeDiscretization liborPeriodDiscretization,
ForwardCurve forwardRateCurve,
DiscountCurve discountCurve,
LIBORCovarianceModel covarianceModel,
CalibrationProduct[] calibrationItems,
Map<String,?> properties)
Deprecated.
Use LIBORMarketModelFromCovarianceModel.of() instead.
|
LIBORMarketModelFromCovarianceModel(TimeDiscretization liborPeriodDiscretization,
ForwardCurve forwardRateCurve,
LIBORCovarianceModel covarianceModel)
Creates a LIBOR Market Model for given covariance.
|
LIBORMarketModelFromCovarianceModel(TimeDiscretization liborPeriodDiscretization,
ForwardCurve forwardRateCurve,
LIBORCovarianceModel covarianceModel,
AbstractSwaptionMarketData swaptionMarketData)
Creates a LIBOR Market Model using a given covariance model and calibrating this model
to given swaption volatility data.
|
| 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) |
Object |
clone() |
AnalyticModel |
getAnalyticModel()
Return the associated analytic model, a collection of market date object like discount curve, forward curve
and volatility surfaces.
|
LIBORMarketModelFromCovarianceModel |
getCloneWithModifiedCovarianceModel(LIBORCovarianceModel covarianceModel)
Create a new object implementing LIBORMarketModel, using the new covariance model.
|
LIBORMarketModelFromCovarianceModel |
getCloneWithModifiedData(Map<String,Object> dataModified)
Create a new object implementing LIBORModel, using the new data.
|
LIBORCovarianceModel |
getCovarianceModel()
Return the forward rate (LIBOR) covariance model.
|
DiscountCurve |
getDiscountCurve()
Return the discount curve associated the forwards.
|
RandomVariable[] |
getDrift(int timeIndex,
RandomVariable[] realizationAtTimeIndex,
RandomVariable[] realizationPredictor)
Return the complete vector of the drift for the time index timeIndex, given that current state is realizationAtTimeIndex.
|
LIBORMarketModelFromCovarianceModel.Driftapproximation |
getDriftApproximationMethod() |
RandomVariable[] |
getFactorLoading(int timeIndex,
int componentIndex,
RandomVariable[] realizationAtTimeIndex)
This method has to be implemented to return the factor loadings, i.e.
|
RandomVariable |
getForwardDiscountBond(double time,
double maturity)
Returns the time \( t \) forward bond derived from the numeraire, i.e., \( P(T;t) = E( \frac{N(t)}{N(T)} \vert \mathcal{F}_{t} ) \).
|
ForwardCurve |
getForwardRateCurve()
Return the initial forward rate curve.
|
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[][][] |
getIntegratedLIBORCovariance()
Returns the integrated instantaneous log-forward rate covariance, i.e.,
\( \int_{0}^{t_i} \mathrm{d} \log(L_{j}) \mathrm{d} \log(L_{k}) \mathrm{d}t \).
|
LIBORMarketModelFromCovarianceModel.InterpolationMethod |
getInterpolationMethod() |
RandomVariable |
getLIBOR(double time,
double periodStart,
double periodEnd)
Returns the time \( t \) forward rate on the models forward curve.
|
RandomVariable |
getLIBOR(int timeIndex,
int liborIndex)
Return the forward rate at a given timeIndex and for a given liborIndex.
|
double |
getLiborPeriod(int timeIndex)
The period start corresponding to a given forward rate discretization index.
|
TimeDiscretization |
getLiborPeriodDiscretization()
The tenor time discretization of the forward rate curve.
|
int |
getLiborPeriodIndex(double time)
Same as java.util.Arrays.binarySearch(liborPeriodDiscretization,time).
|
LIBORMarketModelFromCovarianceModel.Measure |
getMeasure() |
Map<String,RandomVariable> |
getModelParameters()
Returns a map of independent model parameters of this model.
|
int |
getNumberOfComponents()
Returns the number of components
|
int |
getNumberOfLibors()
Get the number of LIBORs in the LIBOR discretization.
|
RandomVariable |
getNumeraire(double time)
Return the numeraire at a given time.
|
Map<Double,RandomVariable> |
getNumeraireAdjustments() |
protected RandomVariable |
getNumerairetUnAdjusted(double time) |
protected RandomVariable |
getNumerairetUnAdjustedAtLIBORIndex(int liborTimeIndex) |
RandomVariable |
getRandomVariableForConstant(double value)
Return a random variable initialized with a constant using the models random variable factory.
|
LocalDateTime |
getReferenceDate()
Returns the model's date corresponding to the time discretization's \( t = 0 \).
|
AbstractSwaptionMarketData |
getSwaptionMarketData()
Return the swaption market data used for calibration (if any, may be null).
|
static LIBORMarketModelFromCovarianceModel |
of(TimeDiscretization liborPeriodDiscretization,
AnalyticModel analyticModel,
ForwardCurve forwardRateCurve,
DiscountCurve discountCurve,
AbstractRandomVariableFactory randomVariableFactory,
LIBORCovarianceModel covarianceModel,
CalibrationProduct[] calibrationProducts,
Map<String,?> properties)
Creates a LIBOR Market Model for given covariance with a calibration (if calibration items are given).
|
String |
toString() |
getInitialValue, getMonteCarloWeights, getNumberOfFactors, getProcess, getProcessValue, getTime, getTimeDiscretization, getTimeIndex, setProcessequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNumberOfFactors, getProcess, getTimeDiscretization, setProcesspublic LIBORMarketModelFromCovarianceModel(TimeDiscretization liborPeriodDiscretization, AnalyticModel analyticModel, ForwardCurve forwardRateCurve, DiscountCurve discountCurve, AbstractRandomVariableFactory randomVariableFactory, LIBORCovarianceModel covarianceModel, Map<String,?> properties) throws CalculationException
properties allows to configure the model. The following keys may be used:
measure: Possible values:
SPOT (String): Simulate under spot measure.
TERMINAL (String): Simulate under terminal measure.
stateSpace: Possible values:
LOGNORMAL (String): Simulate L = exp(Y).
NORMAL (String): Simulate L = Y.
liborCap: An optional Double value applied as a cap to the LIBOR rates.
May be used to limit the simulated valued to prevent values attaining POSITIVE_INFINITY and
numerical problems. To disable the cap, set liborCap to Double.POSITIVE_INFINITY.
calibrationParameters: Possible values:
Map<String,Object> a parameter map with the following key/value pairs:
accuracy: Double specifying the required solver accuracy.
maxIterations: Integer specifying the maximum iterations for the solver.
liborPeriodDiscretization - The discretization of the interest rate curve into forward rates (tenor structure).analyticModel - The associated analytic model of this model (containing the associated market data objects like curve).forwardRateCurve - The initial values for the forward rates.discountCurve - The discount curve to use. This will create an LMM model with a deterministic zero-spread discounting adjustment.randomVariableFactory - The random variable factory used to create the inital values of the model.covarianceModel - The covariance model to use.properties - Key value map specifying properties like measure and stateSpace.CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.@Deprecated public LIBORMarketModelFromCovarianceModel(TimeDiscretization liborPeriodDiscretization, AnalyticModel analyticModel, ForwardCurve forwardRateCurve, DiscountCurve discountCurve, AbstractRandomVariableFactory randomVariableFactory, LIBORCovarianceModel covarianceModel, CalibrationProduct[] calibrationProducts, Map<String,?> properties) throws CalculationException
properties allows to configure the model. The following keys may be used:
measure: Possible values:
SPOT (String): Simulate under spot measure.
TERMINAL (String): Simulate under terminal measure.
stateSpace: Possible values:
LOGNORMAL (String): Simulate L = exp(Y).
NORMAL (String): Simulate L = Y.
liborCap: An optional Double value applied as a cap to the LIBOR rates.
May be used to limit the simulated valued to prevent values attaining POSITIVE_INFINITY and
numerical problems. To disable the cap, set liborCap to Double.POSITIVE_INFINITY.
calibrationParameters: Possible values:
Map<String,Object> a parameter map with the following key/value pairs:
accuracy: Double specifying the required solver accuracy.
maxIterations: Integer specifying the maximum iterations for the solver.
liborPeriodDiscretization - The discretization of the interest rate curve into forward rates (tenor structure).analyticModel - The associated analytic model of this model (containing the associated market data objects like curve).forwardRateCurve - The initial values for the forward rates.discountCurve - The discount curve to use. This will create an LMM model with a deterministic zero-spread discounting adjustment.randomVariableFactory - The random variable factory used to create the inital values of the model.covarianceModel - The covariance model to use.calibrationProducts - The vector of calibration items (a union of a product, target value and weight) for the objective function sum weight(i) * (modelValue(i)-targetValue(i).properties - Key value map specifying properties like measure and stateSpace.CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.@Deprecated public LIBORMarketModelFromCovarianceModel(TimeDiscretization liborPeriodDiscretization, AnalyticModel analyticModel, ForwardCurve forwardRateCurve, DiscountCurve discountCurve, LIBORCovarianceModel covarianceModel, CalibrationProduct[] calibrationItems, Map<String,?> properties) throws CalculationException
properties allows to configure the model. The following keys may be used:
measure: Possible values:
SPOT (String): Simulate under spot measure.
TERMINAL (String): Simulate under terminal measure.
stateSpace: Possible values:
LOGNORMAL (String): Simulate L = exp(Y).
NORMAL (String): Simulate L = Y.
liborCap: An optional Double value applied as a cap to the LIBOR rates.
May be used to limit the simulated valued to prevent values attaining POSITIVE_INFINITY and
numerical problems. To disable the cap, set liborCap to Double.POSITIVE_INFINITY.
calibrationParameters: Possible values:
Map<String,Object> a parameter map with the following key/value pairs:
accuracy: Double specifying the required solver accuracy.
maxIterations: Integer specifying the maximum iterations for the solver.
liborPeriodDiscretization - The discretization of the interest rate curve into forward rates (tenor structure).analyticModel - The associated analytic model of this model (containing the associated market data objects like curve).forwardRateCurve - The initial values for the forward rates.discountCurve - The discount curve to use. This will create an LMM model with a deterministic zero-spread discounting adjustment.covarianceModel - The covariance model to use.calibrationItems - The vector of calibration items (a union of a product, target value and weight) for the objective function sum weight(i) * (modelValue(i)-targetValue(i).properties - Key value map specifying properties like measure and stateSpace.CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.public LIBORMarketModelFromCovarianceModel(TimeDiscretization liborPeriodDiscretization, ForwardCurve forwardRateCurve, LIBORCovarianceModel covarianceModel) throws CalculationException
liborPeriodDiscretization - The discretization of the interest rate curve into forward rates (tenor structure).forwardRateCurve - The initial values for the forward rates.covarianceModel - The covariance model to use.CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.public LIBORMarketModelFromCovarianceModel(TimeDiscretization liborPeriodDiscretization, ForwardCurve forwardRateCurve, DiscountCurve discountCurve, LIBORCovarianceModel covarianceModel) throws CalculationException
liborPeriodDiscretization - The discretization of the interest rate curve into forward rates (tenor structure).forwardRateCurve - The initial values for the forward rates.discountCurve - The discount curve to use. This will create an LMM model with a deterministic zero-spread discounting adjustment.covarianceModel - The covariance model to use.CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.public LIBORMarketModelFromCovarianceModel(TimeDiscretization liborPeriodDiscretization, ForwardCurve forwardRateCurve, LIBORCovarianceModel covarianceModel, AbstractSwaptionMarketData swaptionMarketData) throws CalculationException
liborPeriodDiscretization - The discretization of the interest rate curve into forward rates (tenor structure).forwardRateCurve - The initial values for the forward rates.covarianceModel - The covariance model to use.swaptionMarketData - The set of swaption values to calibrate to.CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.public LIBORMarketModelFromCovarianceModel(TimeDiscretization liborPeriodDiscretization, ForwardCurve forwardRateCurve, DiscountCurve discountCurve, LIBORCovarianceModel covarianceModel, AbstractSwaptionMarketData swaptionMarketData) throws CalculationException
liborPeriodDiscretization - The discretization of the interest rate curve into forward rates (tenor structure).forwardRateCurve - The initial values for the forward rates.discountCurve - The discount curve to use. This will create an LMM model with a deterministic zero-spread discounting adjustment.covarianceModel - The covariance model to use.swaptionMarketData - The set of swaption values to calibrate to.CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.public LIBORMarketModelFromCovarianceModel(TimeDiscretization liborPeriodDiscretization, ForwardCurve forwardRateCurve, DiscountCurve discountCurve, LIBORCovarianceModel covarianceModel, AbstractSwaptionMarketData swaptionMarketData, Map<String,?> properties) throws CalculationException
liborPeriodDiscretization - The discretization of the interest rate curve into forward rates (tenor structure).forwardRateCurve - The initial values for the forward rates.discountCurve - The discount curve to use. This will create an LMM model with a deterministic zero-spread discounting adjustment.covarianceModel - The covariance model to use.swaptionMarketData - The set of swaption values to calibrate to.properties - Key value map specifying properties like measure and stateSpace.CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.@Deprecated public LIBORMarketModelFromCovarianceModel(TimeDiscretization liborPeriodDiscretization, ForwardCurve forwardRateCurve, DiscountCurve discountCurve, LIBORCovarianceModel covarianceModel, CalibrationProduct[] calibrationItems, Map<String,?> properties) throws CalculationException
properties allows to configure the model. The following keys may be used:
measure: Possible values:
SPOT (String): Simulate under spot measure.
TERMINAL (String): Simulate under terminal measure.
stateSpace: Possible values:
LOGNORMAL (String): Simulate L = exp(Y).
NORMAL (String): Simulate L = Y.
calibrationParameters: Possible values:
Map<String,Object> a parameter map with the following key/value pairs:
accuracy: Double specifying the required solver accuracy.
maxIterations: Integer specifying the maximum iterations for the solver.
liborPeriodDiscretization - The discretization of the interest rate curve into forward rates (tenor structure).forwardRateCurve - The initial values for the forward rates.discountCurve - The discount curve to use. This will create an LMM model with a deterministic zero-spread discounting adjustment.covarianceModel - The covariance model to use.calibrationItems - The vector of calibration items (a union of a product, target value and weight) for the objective function sum weight(i) * (modelValue(i)-targetValue(i).properties - Key value map specifying properties like measure and stateSpace.CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.public static LIBORMarketModelFromCovarianceModel of(TimeDiscretization liborPeriodDiscretization, AnalyticModel analyticModel, ForwardCurve forwardRateCurve, DiscountCurve discountCurve, AbstractRandomVariableFactory randomVariableFactory, LIBORCovarianceModel covarianceModel, CalibrationProduct[] calibrationProducts, Map<String,?> properties) throws CalculationException
properties allows to configure the model. The following keys may be used:
measure: Possible values:
SPOT (String): Simulate under spot measure.
TERMINAL (String): Simulate under terminal measure.
stateSpace: Possible values:
LOGNORMAL (String): Simulate L = exp(Y).
NORMAL (String): Simulate L = Y.
liborCap: An optional Double value applied as a cap to the LIBOR rates.
May be used to limit the simulated valued to prevent values attaining POSITIVE_INFINITY and
numerical problems. To disable the cap, set liborCap to Double.POSITIVE_INFINITY.
calibrationParameters: Possible values:
Map<String,Object> a parameter map with the following key/value pairs:
accuracy: Double specifying the required solver accuracy.
maxIterations: Integer specifying the maximum iterations for the solver.
liborPeriodDiscretization - The discretization of the interest rate curve into forward rates (tenor structure).analyticModel - The associated analytic model of this model (containing the associated market data objects like curve).forwardRateCurve - The initial values for the forward rates.discountCurve - The discount curve to use. This will create an LMM model with a deterministic zero-spread discounting adjustment.randomVariableFactory - The random variable factory used to create the inital values of the model.covarianceModel - The covariance model to use.calibrationProducts - The vector of calibration items (a union of a product, target value and weight) for the objective function sum weight(i) * (modelValue(i)-targetValue(i).properties - Key value map specifying properties like measure and stateSpace.CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.public LocalDateTime getReferenceDate()
ProcessModelgetReferenceDate in interface ProcessModelgetReferenceDate in class AbstractProcessModelpublic RandomVariable getNumeraire(double time) throws CalculationException
getNumeraire in interface ProcessModeltime - Time time t for which the numeraire should be returned N(t).RandomVariableCalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.public RandomVariable getForwardDiscountBond(double time, double maturity) throws CalculationException
TermStructureModelgetForwardDiscountBond in interface TermStructureModeltime - The evaluation time.maturity - The maturity.CalculationException - Thrown if model fails to calculate the random variable.protected RandomVariable getNumerairetUnAdjusted(double time) throws CalculationException
CalculationExceptionprotected RandomVariable getNumerairetUnAdjustedAtLIBORIndex(int liborTimeIndex) throws CalculationException
CalculationExceptionpublic Map<Double,RandomVariable> getNumeraireAdjustments()
public RandomVariable[] getInitialState()
ProcessModelgetInitialState in interface ProcessModelpublic RandomVariable[] getDrift(int timeIndex, RandomVariable[] realizationAtTimeIndex, RandomVariable[] realizationPredictor)
Measure.SPOT or Measure.TERMINAL - depending how the
model object was constructed. For Measure.TERMINAL the j-th entry of the return value is the random variable
\[
\mu_{j}^{\mathbb{Q}^{P(T_{n})}}(t) \ = \ - \mathop{\sum_{l\geq j+1}}_{l\leq n-1} \frac{\delta_{l}}{1+\delta_{l} L_{l}(t)} (\lambda_{j}(t) \cdot \lambda_{l}(t))
\]
and for Measure.SPOT the j-th entry of the return value is the random variable
\[
\mu_{j}^{\mathbb{Q}^{N}}(t) \ = \ \sum_{m(t) < l\leq j} \frac{\delta_{l}}{1+\delta_{l} L_{l}(t)} (\lambda_{j}(t) \cdot \lambda_{l}(t))
\]
where \( \lambda_{j} \) is the vector for factor loadings for the j-th component of the stochastic process (that is, the diffusion part is
\( \sum_{k=1}^m \lambda_{j,k} \mathrm{d}W_{k} \)).
Note: The scalar product of the factor loadings determines the instantaneous covariance. If the model is written in log-coordinates (using exp as a state space transform), we find
\(\lambda_{j} \cdot \lambda_{l} = \sum_{k=1}^m \lambda_{j,k} \lambda_{l,k} = \sigma_{j} \sigma_{l} \rho_{j,l} \).
If the model is written without a state space transformation (in its orignial coordinates) then \(\lambda_{j} \cdot \lambda_{l} = \sum_{k=1}^m \lambda_{j,k} \lambda_{l,k} = L_{j} L_{l} \sigma_{j} \sigma_{l} \rho_{j,l} \).getDrift in interface ProcessModeltimeIndex - Time index i for which the drift should be returned μ(ti).realizationAtTimeIndex - Time current forward rate vector at time index i which should be used in the calculation.realizationPredictor - The given realization at timeIndex+1 or null if no predictor is available.RandomVariableFromDoubleArray[]The calculation of the drift is consistent with the calculation of the numeraire in getNumeraire.,
The factor loading \( \lambda_{j,k} \).public RandomVariable[] getFactorLoading(int timeIndex, int componentIndex, RandomVariable[] realizationAtTimeIndex)
ProcessModelgetFactorLoading in interface 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 applyStateSpaceTransform(int componentIndex, RandomVariable randomVariable)
ProcessModelapplyStateSpaceTransform in interface ProcessModelcomponentIndex - The component index i.randomVariable - The state random variable Yi.public RandomVariable applyStateSpaceTransformInverse(int componentIndex, RandomVariable randomVariable)
applyStateSpaceTransformInverse in interface ProcessModelpublic RandomVariable getRandomVariableForConstant(double value)
ProcessModelgetRandomVariableForConstant in interface ProcessModelvalue - The constant value.public LIBORMarketModelFromCovarianceModel.Driftapproximation getDriftApproximationMethod()
public RandomVariable getLIBOR(double time, double periodStart, double periodEnd) throws CalculationException
TermStructureModelgetLIBOR in interface TermStructureModeltime - The evaluation time.periodStart - The period start of the forward rate.periodEnd - The period end of the forward rate.CalculationException - Thrown if model fails to calculate the random variable.public RandomVariable getLIBOR(int timeIndex, int liborIndex) throws CalculationException
LIBORModelgetLIBOR in interface LIBORModeltimeIndex - The time index (associated with ProcessModel.getTimeDiscretization().liborIndex - The forward rate index (associated with LIBORModel.getLiborPeriodDiscretization().CalculationException - Thrown if calculation failed.public int getNumberOfComponents()
ProcessModelgetNumberOfComponents in interface ProcessModelpublic int getNumberOfLibors()
LIBORModelgetNumberOfLibors in interface LIBORModelpublic double getLiborPeriod(int timeIndex)
LIBORModelgetLiborPeriod in interface LIBORModeltimeIndex - The index corresponding to a given time (interpretation is start of period)public int getLiborPeriodIndex(double time)
LIBORModelgetLiborPeriodIndex in interface LIBORModeltime - The period start.public TimeDiscretization getLiborPeriodDiscretization()
LIBORModelgetLiborPeriodDiscretization in interface LIBORModelpublic LIBORMarketModelFromCovarianceModel.InterpolationMethod getInterpolationMethod()
LIBORMarketModelFromCovarianceModel.InterpolationMethod.public LIBORMarketModelFromCovarianceModel.Measure getMeasure()
LIBORMarketModelFromCovarianceModel.Measure.public double[][][] getIntegratedLIBORCovariance()
LIBORMarketModelintegratedLIBORCovariance[timeIndex][componentIndex1][componentIndex2].getIntegratedLIBORCovariance in interface LIBORMarketModelpublic AnalyticModel getAnalyticModel()
TermStructureModelgetAnalyticModel in interface TermStructureModelpublic DiscountCurve getDiscountCurve()
TermStructureModelgetDiscountCurve in interface TermStructureModelpublic ForwardCurve getForwardRateCurve()
TermStructureModelgetForwardRateCurve in interface TermStructureModelpublic AbstractSwaptionMarketData getSwaptionMarketData()
public LIBORCovarianceModel getCovarianceModel()
LIBORMarketModelgetCovarianceModel in interface LIBORMarketModelpublic LIBORMarketModelFromCovarianceModel getCloneWithModifiedCovarianceModel(LIBORCovarianceModel covarianceModel)
LIBORMarketModelgetCloneWithModifiedCovarianceModel in interface LIBORMarketModelcovarianceModel - A covariance modelLIBORMarketModelFromCovarianceModel using the specified covariance model.public LIBORMarketModelFromCovarianceModel getCloneWithModifiedData(Map<String,Object> dataModified) throws CalculationException
LIBORModelgetCloneWithModifiedData in interface LIBORModelgetCloneWithModifiedData in interface TermStructureModelgetCloneWithModifiedData in interface ProcessModeldataModified - A map with values to be used in constructions (keys are identical to parameter names of the constructors).CalculationException - Thrown when the model could not be created.public Map<String,RandomVariable> getModelParameters()
IndependentModelParameterProvidergetModelParameters in interface IndependentModelParameterProviderCopyright © 2019. All rights reserved.