net.finmath.montecarlo
Interface MonteCarloSimulationInterface
-
- All Known Subinterfaces:
- AssetModelMonteCarloSimulationInterface, HybridAssetLIBORModelMonteCarloSimulationInterface, LIBORModelMonteCarloSimulationInterface
- All Known Implementing Classes:
- HybridAssetLIBORModelMonteCarloSimulation, LIBORModelMonteCarloSimulation, MonteCarloBlackScholesModel, MonteCarloBlackScholesModel2, MonteCarloMultiAssetBlackScholesModel
public interface MonteCarloSimulationInterfaceThe interface implemented by a simulation of an SDE. Provides the dimension of the SDE and the the time discretization of the simulation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description MonteCarloSimulationInterfacegetCloneWithModifiedData(java.util.Map<java.lang.String,java.lang.Object> dataModified)Create a clone of this simulation modifying some of its properties (if any).RandomVariableInterfacegetMonteCarloWeights(double time)This method returns the weights of a weighted Monte Carlo method (the probability density).RandomVariableInterfacegetMonteCarloWeights(int timeIndex)This method returns the weights of a weighted Monte Carlo method (the probability density).intgetNumberOfPaths()Returns the numberOfPaths.RandomVariableInterfacegetRandomVariableForConstant(double value)Returns a random variable which is initialized to a constant, but has exactly the same number of paths or discretization points as the ones used by thisMonteCarloSimulationInterface.doublegetTime(int timeIndex)Returns the time for a given time index.TimeDiscretizationInterfacegetTimeDiscretization()Returns the timeDiscretization.intgetTimeIndex(double time)Returns the time index for a given time.
-
-
-
Method Detail
-
getNumberOfPaths
int getNumberOfPaths()
Returns the numberOfPaths.- Returns:
- Returns the numberOfPaths.
-
getTimeDiscretization
TimeDiscretizationInterface getTimeDiscretization()
Returns the timeDiscretization.- Returns:
- Returns the timeDiscretization.
-
getTime
double getTime(int timeIndex)
Returns the time for a given time index.- Parameters:
timeIndex- Time index- Returns:
- Returns the time for a given time index.
-
getTimeIndex
int getTimeIndex(double time)
Returns the time index for a given time.- Parameters:
time- The time.- Returns:
- Returns the time index for a given time.
-
getRandomVariableForConstant
RandomVariableInterface getRandomVariableForConstant(double value)
Returns a random variable which is initialized to a constant, but has exactly the same number of paths or discretization points as the ones used by thisMonteCarloSimulationInterface.- Parameters:
value- The constant value to be used for initialized the random variable.- Returns:
- A new random variable.
-
getMonteCarloWeights
RandomVariableInterface getMonteCarloWeights(int timeIndex) throws CalculationException
This method returns the weights of a weighted Monte Carlo method (the probability density).- Parameters:
timeIndex- Time index at which the process should be observed- Returns:
- A vector of positive weights which sums up to one
- Throws:
CalculationException- Thrown if the valuation fails, specific cause may be available via thecause()method.
-
getMonteCarloWeights
RandomVariableInterface getMonteCarloWeights(double time) throws CalculationException
This method returns the weights of a weighted Monte Carlo method (the probability density).- Parameters:
time- Time at which the process should be observed- Returns:
- A vector of positive weights which sums up to one
- Throws:
CalculationException- Thrown if the valuation fails, specific cause may be available via thecause()method.
-
getCloneWithModifiedData
MonteCarloSimulationInterface getCloneWithModifiedData(java.util.Map<java.lang.String,java.lang.Object> dataModified) throws CalculationException
Create a clone of this simulation modifying some of its properties (if any).- Parameters:
dataModified- The data which should be changed in the new model- Returns:
- Returns a clone of this model, with some data modified (then it is no longer a clone :-)
- Throws:
CalculationException- Thrown if the valuation fails, specific cause may be available via thecause()method.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG