Module net.finmath.lib
Class SingleAssetFourierProductFactory
java.lang.Object
net.finmath.modelling.productfactory.SingleAssetFourierProductFactory
- All Implemented Interfaces:
ProductFactory<SingleAssetProductDescriptor>
public class SingleAssetFourierProductFactory
extends Object
implements ProductFactory<SingleAssetProductDescriptor>
Product factory of single asset derivatives for use with a Fourier method based model.
- Version:
- 1.0
- Author:
- Christian Fries, Roland Bachl
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFourier method based implementation of a digital option from a product descriptor.static classFourier method based implementation of a European option from a product descriptor. -
Constructor Summary
ConstructorsConstructorDescriptionSingleAssetFourierProductFactory(LocalDate referenceDate)Create the product factory. -
Method Summary
Modifier and TypeMethodDescriptionDescribedProduct<? extends SingleAssetProductDescriptor>getProductFromDescriptor(ProductDescriptor descriptor)Constructs the product from a given product descriptor.
-
Constructor Details
-
SingleAssetFourierProductFactory
Create the product factory.- Parameters:
referenceDate- To be used when converting absolute dates to relative dates in double.
-
-
Method Details
-
getProductFromDescriptor
public DescribedProduct<? extends SingleAssetProductDescriptor> getProductFromDescriptor(ProductDescriptor descriptor)Description copied from interface:ProductFactoryConstructs the product from a given product descriptor.- Specified by:
getProductFromDescriptorin interfaceProductFactory<SingleAssetProductDescriptor>- Parameters:
descriptor- A product descriptor.- Returns:
- An instance of the product describable by this descriptor.
-