public class LIBORVolatilityModelFromGivenMatrix extends LIBORVolatilityModel
| Constructor and Description |
|---|
LIBORVolatilityModelFromGivenMatrix(AbstractRandomVariableFactory randomVariableFactory,
TimeDiscretization timeDiscretization,
TimeDiscretization liborPeriodDiscretization,
double[][] volatility)
Creates a simple volatility model using given piece-wise constant values on
a given discretization grid.
|
LIBORVolatilityModelFromGivenMatrix(AbstractRandomVariableFactory randomVariableFactory,
TimeDiscretization timeDiscretization,
TimeDiscretization liborPeriodDiscretization,
double[][] volatility,
boolean isCalibrateable)
Creates a simple volatility model using given piece-wise constant values on
a given discretization grid.
|
LIBORVolatilityModelFromGivenMatrix(AbstractRandomVariableFactory randomVariableFactory,
TimeDiscretization timeDiscretization,
TimeDiscretization liborPeriodDiscretization,
RandomVariable[][] volatility,
boolean isCalibrateable)
Creates a simple volatility model using given piece-wise constant values on
a given discretization grid.
|
LIBORVolatilityModelFromGivenMatrix(TimeDiscretization timeDiscretization,
TimeDiscretization liborPeriodDiscretization,
double[][] volatility)
Creates a simple volatility model using given piece-wise constant values on
a given discretization grid.
|
LIBORVolatilityModelFromGivenMatrix(TimeDiscretization timeDiscretization,
TimeDiscretization liborPeriodDiscretization,
RandomVariable[][] volatility)
Creates a simple volatility model using given piece-wise constant values on
a given discretization grid.
|
LIBORVolatilityModelFromGivenMatrix(TimeDiscretization timeDiscretization,
TimeDiscretization liborPeriodDiscretization,
RandomVariable[][] volatility,
boolean isCalibrateable)
Creates a simple volatility model using given piece-wise constant values on
a given discretization grid.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
LIBORVolatilityModel |
getCloneWithModifiedData(Map<String,Object> dataModified)
Returns a clone of this model where the specified properties have been modified.
|
LIBORVolatilityModelFromGivenMatrix |
getCloneWithModifiedParameter(RandomVariable[] parameter) |
RandomVariable[] |
getParameter() |
RandomVariable |
getVolatility(int timeIndex,
int component)
Implement this method to complete the implementation.
|
getLiborPeriodDiscretization, getParameterAsDouble, getTimeDiscretizationpublic LIBORVolatilityModelFromGivenMatrix(AbstractRandomVariableFactory randomVariableFactory, TimeDiscretization timeDiscretization, TimeDiscretization liborPeriodDiscretization, RandomVariable[][] volatility, boolean isCalibrateable)
randomVariableFactory - The random variable factor used to construct random variables from the parameters.timeDiscretization - Discretization of simulation time.liborPeriodDiscretization - Discretization of tenor times.volatility - Volatility matrix volatility[timeIndex][componentIndex] where timeIndex the index of the start time in timeDiscretizationFromArray and componentIndex from liborPeriodDiscretizationisCalibrateable - Set this to true, if the parameters are available for calibration.public LIBORVolatilityModelFromGivenMatrix(TimeDiscretization timeDiscretization, TimeDiscretization liborPeriodDiscretization, RandomVariable[][] volatility, boolean isCalibrateable)
timeDiscretization - Discretization of simulation time.liborPeriodDiscretization - Discretization of tenor times.volatility - Volatility matrix volatility[timeIndex][componentIndex] where timeIndex the index of the start time in timeDiscretizationFromArray and componentIndex from liborPeriodDiscretizationisCalibrateable - Set this to true, if the parameters are available for calibration.public LIBORVolatilityModelFromGivenMatrix(TimeDiscretization timeDiscretization, TimeDiscretization liborPeriodDiscretization, RandomVariable[][] volatility)
timeDiscretization - Discretization of simulation time.liborPeriodDiscretization - Discretization of tenor times.volatility - Volatility matrix volatility[timeIndex][componentIndex] where timeIndex the index of the start time in timeDiscretizationFromArray and componentIndex from liborPeriodDiscretizationpublic LIBORVolatilityModelFromGivenMatrix(AbstractRandomVariableFactory randomVariableFactory, TimeDiscretization timeDiscretization, TimeDiscretization liborPeriodDiscretization, double[][] volatility, boolean isCalibrateable)
randomVariableFactory - The random variable factor used to construct random variables from the parameters.timeDiscretization - Discretization of simulation time.liborPeriodDiscretization - Discretization of tenor times.volatility - Volatility matrix volatility[timeIndex][componentIndex] where timeIndex the index of the start time in timeDiscretizationFromArray and componentIndex from liborPeriodDiscretizationisCalibrateable - Set this to true, if the parameters are available for calibration.public LIBORVolatilityModelFromGivenMatrix(AbstractRandomVariableFactory randomVariableFactory, TimeDiscretization timeDiscretization, TimeDiscretization liborPeriodDiscretization, double[][] volatility)
randomVariableFactory - The random variable factor used to construct random variables from the parameters.timeDiscretization - Discretization of simulation time.liborPeriodDiscretization - Discretization of tenor times.volatility - Volatility matrix volatility[timeIndex][componentIndex] where timeIndex the index of the start time in timeDiscretizationFromArray and componentIndex from liborPeriodDiscretizationpublic LIBORVolatilityModelFromGivenMatrix(TimeDiscretization timeDiscretization, TimeDiscretization liborPeriodDiscretization, double[][] volatility)
timeDiscretization - Discretization of simulation time.liborPeriodDiscretization - Discretization of tenor times.volatility - Volatility matrix volatility[timeIndex][componentIndex] where timeIndex the index of the start time in timeDiscretizationFromArray and componentIndex from liborPeriodDiscretizationpublic RandomVariable getVolatility(int timeIndex, int component)
LIBORVolatilityModelgetVolatility in class LIBORVolatilityModeltimeIndex - The time index (for timeDiscretizationFromArray)component - The libor index (for liborPeriodDiscretization)public RandomVariable[] getParameter()
getParameter in class LIBORVolatilityModelpublic LIBORVolatilityModelFromGivenMatrix getCloneWithModifiedParameter(RandomVariable[] parameter)
getCloneWithModifiedParameter in class LIBORVolatilityModelpublic Object clone()
clone in class LIBORVolatilityModelpublic LIBORVolatilityModel getCloneWithModifiedData(Map<String,Object> dataModified)
LIBORVolatilityModeldataModified. If data is provided which is ignored by the model
no exception may be thrown.
Furthermore the structure of the correlation model has to match changed data.
A change of the time discretizations may requires a change in the parameters
but this function will just insert the new time discretization without
changing the parameters. An exception may not be thrown.getCloneWithModifiedData in class LIBORVolatilityModeldataModified - Key-value-map of parameters to modify.Copyright © 2019. All rights reserved.