Module net.finmath.lib
Class CalibratableMertonModel
java.lang.Object
net.finmath.fouriermethod.calibration.models.CalibratableMertonModel
- All Implemented Interfaces:
CalibratableProcess
This class is creates new instances of MertonModel and communicates with the optimization algorithm.
This class provides clones of herself: in such a way the information concerning constraints is not lost.
The method getCharacteristicFunction is then passed to the FFT pricing routine.
- Author:
- Alessandro Gnoatto
-
Constructor Summary
ConstructorsConstructorDescriptionCalibratableMertonModel(MertonModelDescriptor descriptor)
Basic constructor where all parameters are to be calibrated.CalibratableMertonModel(MertonModelDescriptor descriptor, ScalarParameterInformation volatilityInfo, ScalarParameterInformation jumpIntensityInfo, ScalarParameterInformation jumpSizeMeanInfo, ScalarParameterInformation jumpSizeStdDevInfo)
This constructor allows for the specification of constraints. -
Method Summary
Modifier and TypeMethodDescriptionDirectly returns the characteristic function.getCloneForModifiedParameters(double[] parameters)
Calibration substitutes in the model the parameters of the process with calibrated ones.Every class implementing this interface must contain a ModelDescriptor from which we can create some concrete model.double[]
Extracts parameter lower bounds for the optimizer factory.double[]
Extracts parameter upper bounds for the optimizer factory.toString()
-
Constructor Details
-
CalibratableMertonModel
Basic constructor where all parameters are to be calibrated. All parameters are unconstrained.- Parameters:
descriptor
- The model descriptor for the Merton model.
-
CalibratableMertonModel
public CalibratableMertonModel(MertonModelDescriptor descriptor, ScalarParameterInformation volatilityInfo, ScalarParameterInformation jumpIntensityInfo, ScalarParameterInformation jumpSizeMeanInfo, ScalarParameterInformation jumpSizeStdDevInfo)This constructor allows for the specification of constraints. This is very liberal since we can impose different types of constraints. The choice on the parameters to be applied is left to the user. This implies that he user could create Merton models which are not meaningful.- Parameters:
descriptor
- The model descriptor for the Merton model.volatilityInfo
- The volatility constraint.jumpIntensityInfo
- The constraint for the jump intensity parameter.jumpSizeMeanInfo
- The constraint for the jump size mean parameter.jumpSizeStdDevInfo
- The constraint for the jump standard deviation parameter.
-
-
Method Details
-
getCloneForModifiedParameters
Description copied from interface:CalibratableProcess
Calibration substitutes in the model the parameters of the process with calibrated ones. Market observables such as the initial stock value should not be changed.- Specified by:
getCloneForModifiedParameters
in interfaceCalibratableProcess
- Parameters:
parameters
- The new parameters.- Returns:
- a clone of the original model with modified parameters.
-
getModelDescriptor
Description copied from interface:CalibratableProcess
Every class implementing this interface must contain a ModelDescriptor from which we can create some concrete model.- Specified by:
getModelDescriptor
in interfaceCalibratableProcess
- Returns:
- The descriptor for this model.
-
getCharacteristicFunctionModel
Description copied from interface:CalibratableProcess
Directly returns the characteristic function.- Specified by:
getCharacteristicFunctionModel
in interfaceCalibratableProcess
- Returns:
- the characteristic function
-
getParameterLowerBounds
public double[] getParameterLowerBounds()Description copied from interface:CalibratableProcess
Extracts parameter lower bounds for the optimizer factory.- Specified by:
getParameterLowerBounds
in interfaceCalibratableProcess
- Returns:
- parameter lower bounds for the optimizer factory.
-
getParameterUpperBounds
public double[] getParameterUpperBounds()Description copied from interface:CalibratableProcess
Extracts parameter upper bounds for the optimizer factory.- Specified by:
getParameterUpperBounds
in interfaceCalibratableProcess
- Returns:
- parameter upper bounds for the optimizer factory.
-
toString
-