public abstract class LIBORVolatilityModel extends Object implements Serializable
LIBORCovarianceModelFromVolatilityAndCorrelation).
Derive from this class and implement the getVolatlity method.
You have to call the constructor of this class to set the time
discretizations.| Constructor and Description |
|---|
LIBORVolatilityModel(TimeDiscretization timeDiscretization,
TimeDiscretization liborPeriodDiscretization) |
| Modifier and Type | Method and Description |
|---|---|
abstract Object |
clone() |
abstract LIBORVolatilityModel |
getCloneWithModifiedData(Map<String,Object> dataModified)
Returns a clone of this model where the specified properties have been modified.
|
abstract LIBORVolatilityModel |
getCloneWithModifiedParameter(RandomVariable[] parameter) |
TimeDiscretization |
getLiborPeriodDiscretization() |
abstract RandomVariable[] |
getParameter() |
double[] |
getParameterAsDouble() |
TimeDiscretization |
getTimeDiscretization() |
abstract RandomVariable |
getVolatility(int timeIndex,
int component)
Implement this method to complete the implementation.
|
public LIBORVolatilityModel(TimeDiscretization timeDiscretization, TimeDiscretization liborPeriodDiscretization)
timeDiscretization - The vector of simulation time discretization points.liborPeriodDiscretization - The vector of tenor discretization points.public abstract RandomVariable[] getParameter()
public abstract LIBORVolatilityModel getCloneWithModifiedParameter(RandomVariable[] parameter)
public abstract RandomVariable getVolatility(int timeIndex, int component)
timeIndex - The time index (for timeDiscretizationFromArray)component - The libor index (for liborPeriodDiscretization)public double[] getParameterAsDouble()
public TimeDiscretization getLiborPeriodDiscretization()
public TimeDiscretization getTimeDiscretization()
public abstract LIBORVolatilityModel getCloneWithModifiedData(Map<String,Object> dataModified)
dataModified. 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.dataModified - Key-value-map of parameters to modify.Copyright © 2019. All rights reserved.