Interface AssetModelMonteCarloSimulationModel

    • Method Detail

      • getNumberOfAssets

        int getNumberOfAssets()
        Returns the number of asset price processes.
        Returns:
        The number of asset price processes
      • getAssetValue

        RandomVariable getAssetValue​(int timeIndex,
                                     int assetIndex)
                              throws CalculationException
        Returns the random variable representing the asset's value at a given time for a given asset.
        Parameters:
        timeIndex - Index of simulation time
        assetIndex - Index of the asset (0 for a single asset model)
        Returns:
        The asset process as seen on simulation time
        Throws:
        CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.
      • getAssetValue

        RandomVariable getAssetValue​(double time,
                                     int assetIndex)
                              throws CalculationException
        Returns the random variable representing the asset's value at a given time for a given asset.
        Parameters:
        time - Simulation time
        assetIndex - Index of the asset (0 for a single asset model)
        Returns:
        The asset process as seen on simulation time
        Throws:
        CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.
      • getNumeraire

        RandomVariable getNumeraire​(int timeIndex)
                             throws CalculationException
        Returns the numeraire associated with the valuation measure used by this model.
        Parameters:
        timeIndex - The time index (associated with this models time discretization).
        Returns:
        The numeraire associated with the valuation measure used by this model.
        Throws:
        CalculationException - Thrown if calculation of numeraire fails.
      • getNumeraire

        RandomVariable getNumeraire​(double time)
                             throws CalculationException
        Returns the numeraire associated with the valuation measure used by this model.
        Parameters:
        time - The time for which the numeraire is requested.
        Returns:
        The numeraire associated with the valuation measure used by this model.
        Throws:
        CalculationException - Thrown if calculation of numeraire fails.
      • getCloneWithModifiedSeed

        AssetModelMonteCarloSimulationModel getCloneWithModifiedSeed​(int seed)
                                                              throws CalculationException
        Create a clone of the object implementing AssetModelMonteCarloSimulationModel using a different Monte-Carlo seed.
        Parameters:
        seed - The seed of the underlying random number generator.
        Returns:
        Returns a clone of this model except for a modified Monte-Carlo seed.
        Throws:
        CalculationException - Thrown if cloning failed.