net.finmath.montecarlo.interestrate.modelplugins
Class LIBORVolatilityModel
- java.lang.Object
-
- net.finmath.montecarlo.interestrate.modelplugins.LIBORVolatilityModel
-
- Direct Known Subclasses:
- LIBORVolatilityModelFourParameterExponentialForm, LIBORVolatilityModelFourParameterExponentialFormIntegrated, LIBORVolatilityModelFromGivenMatrix, LIBORVolatilityModelMaturityDependentFourParameterExponentialForm, LIBORVolatilityModelTwoParameterExponentialForm
public abstract class LIBORVolatilityModel extends java.lang.ObjectAbstract base class and interface description of a volatility model (as it is used inLIBORCovarianceModelFromVolatilityAndCorrelation). Derive from this class and implement thegetVolatlitymethod. You have to call the constructor of this class to set the time discretizations.
-
-
Constructor Summary
Constructors Constructor and Description LIBORVolatilityModel(TimeDiscretizationInterface timeDiscretization, TimeDiscretizationInterface liborPeriodDiscretization)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract java.lang.Objectclone()TimeDiscretizationInterfacegetLiborPeriodDiscretization()abstract double[]getParameter()TimeDiscretizationInterfacegetTimeDiscretization()abstract RandomVariableInterfacegetVolatility(int timeIndex, int component)Implement this method to complete the implementation.abstract voidsetParameter(double[] parameter)
-
-
-
Constructor Detail
-
LIBORVolatilityModel
public LIBORVolatilityModel(TimeDiscretizationInterface timeDiscretization, TimeDiscretizationInterface liborPeriodDiscretization)
- Parameters:
timeDiscretization- The vector of simulation time discretization points.liborPeriodDiscretization- The vector of tenor discretization points.
-
-
Method Detail
-
getParameter
public abstract double[] getParameter()
-
setParameter
public abstract void setParameter(double[] parameter)
-
getVolatility
public abstract RandomVariableInterface getVolatility(int timeIndex, int component)
Implement this method to complete the implementation.- Parameters:
timeIndex- The time index (for timeDiscretization)component- The libor index (for liborPeriodDiscretization)- Returns:
- A random variable (e.g. as a vector of doubles) representing the volatility for each path.
-
getLiborPeriodDiscretization
public TimeDiscretizationInterface getLiborPeriodDiscretization()
- Returns:
- Returns the liborPeriodDiscretization.
-
getTimeDiscretization
public TimeDiscretizationInterface getTimeDiscretization()
- Returns:
- Returns the timeDiscretization.
-
clone
public abstract java.lang.Object clone()
- Overrides:
clonein classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG