- All Superinterfaces:
Product
- All Known Implementing Classes:
AbstractFourierTransformProduct
,DigitalOption
,EuropeanOption
,SingleAssetFourierProductFactory.DigitalOptionFourierMethod
,SingleAssetFourierProductFactory.EuropeanOptionFourierMethod
- Version:
- 1.0
- Author:
- Christian Fries
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Return the lower bound of the imaginary part of the domain where the characteristic function can be integrated.double
Return the upper bound of the imaginary part of the domain where the characteristic function can be integrated.double
Return the maturity of the associated payoff.Return the valuation of the product using the given model.double
getValue(CharacteristicFunctionModel model)
This method returns the value random variable of the product within the specified model, evaluated at a given evalutationTime.Return the valuation of the product using the given model.
-
Method Details
-
getValue
Description copied from interface:Product
Return the valuation of the product using the given model. Implement this method using a checked cast of the model to a derived model for which the product provides a valuation algorithm. Example: an interest rate product requires that the passed model object implements the interface of an interest rate model. Since there is no polymorphism on arguments (see Double Dynamic Dispatch), we reply on a checked cast. -
getValues
Description copied from interface:Product
Return the valuation of the product using the given model. Implement this method using a checked cast of the model to a derived model for which the product provides a valuation algorithm. Example: an interest rate product requires that the passed model object implements the interface of an interest rate model. Since there is no polymorphism on arguments (see Double Dynamic Dispatch), we reply on a checked cast. -
getValue
This method returns the value random variable of the product within the specified model, evaluated at a given evalutationTime. Note: For a lattice this is often the value conditional to evalutationTime, for a Monte-Carlo simulation this is the (sum of) value discounted to evaluation time. Cashflows prior evaluationTime are not considered.- Parameters:
model
- The model used to price the product.- Returns:
- The random variable representing the value of the product discounted to evaluation time
- Throws:
CalculationException
- Thrown if the valuation fails, specific cause may be available via thecause()
method.
-
getMaturity
double getMaturity()Return the maturity of the associated payoff.- Returns:
- The maturity of the associated payoff.
-
getIntegrationDomainImagLowerBound
double getIntegrationDomainImagLowerBound()Return the lower bound of the imaginary part of the domain where the characteristic function can be integrated.- Returns:
- the lower bound of the imaginary part of the domain of integration.
-
getIntegrationDomainImagUpperBound
double getIntegrationDomainImagUpperBound()Return the upper bound of the imaginary part of the domain where the characteristic function can be integrated.- Returns:
- the upper bound of the imaginary part of the domain of integration.
-