public interface MonteCarloSimulationModel extends Model
Modifier and Type | Method and Description |
---|---|
MonteCarloSimulationModel |
getCloneWithModifiedData(Map<String,Object> dataModified)
Create a clone of this simulation modifying some of its properties (if any).
|
RandomVariable |
getMonteCarloWeights(double time)
This method returns the weights of a weighted Monte Carlo method (the probability density).
|
RandomVariable |
getMonteCarloWeights(int timeIndex)
This method returns the weights of a weighted Monte Carlo method (the probability density).
|
int |
getNumberOfPaths()
Returns the numberOfPaths.
|
RandomVariable |
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 this
MonteCarloSimulationModel . |
default LocalDateTime |
getReferenceDate()
Returns the model's date corresponding to the time discretization's \( t = 0 \).
|
double |
getTime(int timeIndex)
Returns the time for a given time index.
|
TimeDiscretization |
getTimeDiscretization()
Returns the timeDiscretizationFromArray.
|
int |
getTimeIndex(double time)
Returns the time index for a given time.
|
int getNumberOfPaths()
default LocalDateTime getReferenceDate()
TimeDiscretization getTimeDiscretization()
double getTime(int timeIndex)
timeIndex
- Time indexint getTimeIndex(double time)
time
- The time.RandomVariable getRandomVariableForConstant(double value)
MonteCarloSimulationModel
.value
- The constant value to be used for initialized the random variable.RandomVariable getMonteCarloWeights(int timeIndex) throws CalculationException
timeIndex
- Time index at which the process should be observedCalculationException
- Thrown if the valuation fails, specific cause may be available via the cause()
method.RandomVariable getMonteCarloWeights(double time) throws CalculationException
time
- Time at which the process should be observedCalculationException
- Thrown if the valuation fails, specific cause may be available via the cause()
method.MonteCarloSimulationModel getCloneWithModifiedData(Map<String,Object> dataModified) throws CalculationException
dataModified
- The data which should be changed in the new model. This is a key value may, where the key corresponds to the name of a property in one of the objects constructors.CalculationException
- Thrown if the valuation fails, specific cause may be available via the cause()
method.Copyright © 2019. All rights reserved.