java.lang.Object
net.finmath.modelling.modelfactory.AssetModelMonteCarloFactory
- All Implemented Interfaces:
ModelFactory<AssetModelDescriptor>
public class AssetModelMonteCarloFactory
extends Object
implements ModelFactory<AssetModelDescriptor>
Constructs asset models, which evaluate products via Monte-Carlo method.
- Author:
- Christian Fries, Roland Bachl
-
Constructor Summary
ConstructorsConstructorDescriptionAssetModelMonteCarloFactory(IndependentIncrements stochasticDriver)Create the factory.AssetModelMonteCarloFactory(RandomVariableFactory randomVariableFactory, IndependentIncrements stochasticDriver)Create the factory.AssetModelMonteCarloFactory(RandomVariableFactory randomVariableFactory, IndependentIncrements stochasticDriver, HestonModel.Scheme scheme)Create the factory. -
Method Summary
Modifier and TypeMethodDescriptionDescribedModel<? extends AssetModelDescriptor>getModelFromDescriptor(AssetModelDescriptor descriptor)Get the model for the given descriptor.
-
Constructor Details
-
AssetModelMonteCarloFactory
public AssetModelMonteCarloFactory(RandomVariableFactory randomVariableFactory, IndependentIncrements stochasticDriver, HestonModel.Scheme scheme)Create the factory.- Parameters:
randomVariableFactory- The factory to be used by the models to construct random variables.stochasticDriver- The stochastic driver of the process.scheme- Truncation scheme to be used by the model in the calculation of drift and diffusion coefficients. (Optional parameter, only required by Heston Model).
-
AssetModelMonteCarloFactory
public AssetModelMonteCarloFactory(RandomVariableFactory randomVariableFactory, IndependentIncrements stochasticDriver)Create the factory.- Parameters:
randomVariableFactory- The factory to be used by the models to construct random variables.stochasticDriver- The stochastic driver of the process.
-
AssetModelMonteCarloFactory
Create the factory.- Parameters:
stochasticDriver- The stochastic driver of the process.
-
-
Method Details
-
getModelFromDescriptor
public DescribedModel<? extends AssetModelDescriptor> getModelFromDescriptor(AssetModelDescriptor descriptor)Description copied from interface:ModelFactoryGet the model for the given descriptor.- Specified by:
getModelFromDescriptorin interfaceModelFactory<AssetModelDescriptor>- Parameters:
descriptor- An object being able to describe the given model.- Returns:
- The model.
-