public interface AssetModelMonteCarloSimulationModel extends MonteCarloSimulationModel
| Modifier and Type | Method and Description |
|---|---|
RandomVariable |
getAssetValue(double time,
int assetIndex)
Returns the random variable representing the asset's value at a given time for a given asset.
|
RandomVariable |
getAssetValue(int timeIndex,
int assetIndex)
Returns the random variable representing the asset's value at a given time for a given asset.
|
AssetModelMonteCarloSimulationModel |
getCloneWithModifiedData(Map<String,Object> dataModified)
Create a clone of this simulation modifying some of its properties (if any).
|
AssetModelMonteCarloSimulationModel |
getCloneWithModifiedSeed(int seed)
Create a clone of the object implementing
AssetModelMonteCarloSimulationModel
using a different Monte-Carlo seed. |
int |
getNumberOfAssets()
Returns the number of asset price processes.
|
RandomVariable |
getNumeraire(double time)
Returns the numeraire associated with the valuation measure used by this model.
|
RandomVariable |
getNumeraire(int timeIndex)
Returns the numeraire associated with the valuation measure used by this model.
|
getMonteCarloWeights, getMonteCarloWeights, getNumberOfPaths, getRandomVariableForConstant, getReferenceDate, getTime, getTimeDiscretization, getTimeIndexint getNumberOfAssets()
RandomVariable getAssetValue(int timeIndex, int assetIndex) throws CalculationException
timeIndex - Index of simulation timeassetIndex - Index of the asset (0 for a single asset model)CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.RandomVariable getAssetValue(double time, int assetIndex) throws CalculationException
time - Simulation timeassetIndex - Index of the asset (0 for a single asset model)CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.RandomVariable getNumeraire(int timeIndex) throws CalculationException
timeIndex - The time index (associated with this models time discretization).CalculationException - Thrown if calculation of numeraire fails.RandomVariable getNumeraire(double time) throws CalculationException
time - The time for which the numeraire is requested.CalculationException - Thrown if calculation of numeraire fails.AssetModelMonteCarloSimulationModel getCloneWithModifiedData(Map<String,Object> dataModified) throws CalculationException
getCloneWithModifiedData in interface MonteCarloSimulationModeldataModified - The data which should be changed in the new modelCalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.AssetModelMonteCarloSimulationModel getCloneWithModifiedSeed(int seed) throws CalculationException
AssetModelMonteCarloSimulationModel
using a different Monte-Carlo seed.seed - The seed of the underlying random number generator.CalculationException - Thrown if cloning failed.Copyright © 2019. All rights reserved.