net.finmath.montecarlo.process
Interface ProcessInterface
-
- All Known Subinterfaces:
- AbstractProcessInterface
- All Known Implementing Classes:
- AbstractProcess, LinearInterpolatedTimeDiscreteProcess, ProcessEulerScheme
public interface ProcessInterfaceThe interface for a stochastic process X.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description ProcessInterfaceclone()Create and return a clone of this process.RandomVariableInterfacegetMonteCarloWeights(int timeIndex)This method returns the weights of a weighted Monte Carlo method (the probability density).intgetNumberOfComponents()RandomVariableInterfacegetProcessValue(int timeIndex, int component)This method returns the realization of a component of the process for a given time index.doublegetTime(int timeIndex)TimeDiscretizationInterfacegetTimeDiscretization()intgetTimeIndex(double time)Returns the time index for a given simulation time.
-
-
-
Method Detail
-
getProcessValue
RandomVariableInterface getProcessValue(int timeIndex, int component) throws CalculationException
This method returns the realization of a component of the process for a given time index.- Parameters:
timeIndex- Time index at which the process should be observedcomponent- Component index of the process- Returns:
- The process component realizations (given as
RandomVariable) - Throws:
CalculationException- Thrown if the valuation fails, specific cause may be available via thecause()method.
-
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.
-
getNumberOfComponents
int getNumberOfComponents()
- Returns:
- Returns the numberOfComponents.
-
getTimeDiscretization
TimeDiscretizationInterface getTimeDiscretization()
- Returns:
- Returns the timeDiscretization.
-
getTime
double getTime(int timeIndex)
- 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 simulation time.- Parameters:
time- The given simulation time.- Returns:
- Returns the time index for a given time
-
clone
ProcessInterface clone()
Create and return a clone of this process. The clone is not tied to any model, but has the same process specification, that is, if the model is the same, it would generate the same paths.- Returns:
- Clone of the process
-
-
DataMelt 3.0 © DataMelt by jWork.ORG