net.finmath.fouriermethod.products
Class EuropeanOption
- java.lang.Object
-
- net.finmath.fouriermethod.products.AbstractProductFourierTransform
-
- net.finmath.fouriermethod.products.EuropeanOption
-
- All Implemented Interfaces:
- java.util.function.Function<org.apache.commons.math3.complex.Complex,org.apache.commons.math3.complex.Complex>, CharacteristicFunctionInterface
public class EuropeanOption extends AbstractProductFourierTransform
Implements valuation of a European option on a single asset. Given a model for an asset S, the European option with strike K, maturity T pays
max(S(T) - K , 0) in T
The class implements the characteristic function of the call option payoff, i.e., its Fourier transform.
-
-
Constructor Summary
Constructors Constructor and Description EuropeanOption(double maturity, double strike)Construct a product representing an European option on an asset S (where S the asset with index 0 from the model - single asset case).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description org.apache.commons.math3.complex.Complexapply(org.apache.commons.math3.complex.Complex argument)doublegetIntegrationDomainImagLowerBound()Return the lower bound of the imaginary part of the domain where the characteristic function can be integrated.doublegetIntegrationDomainImagUpperBound()Return the upper bound of the imaginary part of the domain where the characteristic function can be integrated.doublegetMaturity()Return the maturity of the associated payoff.-
Methods inherited from class net.finmath.fouriermethod.products.AbstractProductFourierTransform
getValue
-
-
-
-
Constructor Detail
-
EuropeanOption
public EuropeanOption(double maturity, double strike)Construct a product representing an European option on an asset S (where S the asset with index 0 from the model - single asset case).- Parameters:
maturity- The maturity T in the option payoff max(S(T)-K,0)strike- The strike K in the option payoff max(S(T)-K,0).
-
-
Method Detail
-
apply
public org.apache.commons.math3.complex.Complex apply(org.apache.commons.math3.complex.Complex argument)
-
getMaturity
public double getMaturity()
Description copied from class:AbstractProductFourierTransformReturn the maturity of the associated payoff.- Specified by:
getMaturityin classAbstractProductFourierTransform- Returns:
- The maturity of the associated payoff.
-
getIntegrationDomainImagLowerBound
public double getIntegrationDomainImagLowerBound()
Description copied from class:AbstractProductFourierTransformReturn the lower bound of the imaginary part of the domain where the characteristic function can be integrated.- Specified by:
getIntegrationDomainImagLowerBoundin classAbstractProductFourierTransform- Returns:
- the lower bound of the imaginary part of the domain of integration.
-
getIntegrationDomainImagUpperBound
public double getIntegrationDomainImagUpperBound()
Description copied from class:AbstractProductFourierTransformReturn the upper bound of the imaginary part of the domain where the characteristic function can be integrated.- Specified by:
getIntegrationDomainImagUpperBoundin classAbstractProductFourierTransform- Returns:
- the upper bound of the imaginary part of the domain of integration.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG