public abstract class AbstractProcessModel extends Object implements ProcessModel
ProcessModel.The interface definition contains more details.| Constructor and Description |
|---|
AbstractProcessModel() |
| Modifier and Type | Method and Description |
|---|---|
RandomVariable[] |
getInitialValue()
Returns the initial value of the model.
|
RandomVariable |
getMonteCarloWeights(int timeIndex) |
int |
getNumberOfFactors()
Returns the number of factors m, i.e., the number of independent Brownian drivers.
|
MonteCarloProcess |
getProcess()
Get the numerical scheme used to generate the stochastic process.
|
RandomVariable |
getProcessValue(int timeIndex,
int componentIndex) |
LocalDateTime |
getReferenceDate()
Returns the model's date corresponding to the time discretization's \( t = 0 \).
|
double |
getTime(int timeIndex)
Return the simulation time for a given time index.
|
TimeDiscretization |
getTimeDiscretization()
Get the time discretization of the model (simulation time).
|
int |
getTimeIndex(double time)
Return the time index associated for the given simulation time.
|
void |
setProcess(MonteCarloProcess process)
Set the numerical scheme used to generate the stochastic process.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyStateSpaceTransform, applyStateSpaceTransformInverse, getCloneWithModifiedData, getDrift, getFactorLoading, getInitialState, getNumberOfComponents, getNumeraire, getRandomVariableForConstantpublic RandomVariable[] getInitialValue()
public void setProcess(MonteCarloProcess process)
ProcessModelsetProcess in interface ProcessModelprocess - The process.public MonteCarloProcess getProcess()
ProcessModelgetProcess in interface ProcessModelpublic int getNumberOfFactors()
ProcessModelgetNumberOfFactors in interface ProcessModelpublic RandomVariable getProcessValue(int timeIndex, int componentIndex) throws CalculationException
timeIndex - The time index of evaluation time (using this models time discretization)componentIndex - The component of the process vectorCalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.Process.getProcessValue(int, int)public RandomVariable getMonteCarloWeights(int timeIndex) throws CalculationException
timeIndex - The time index of evaluation time (using this models time discretization)CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.Process.getMonteCarloWeights(int)public LocalDateTime getReferenceDate()
ProcessModelgetReferenceDate in interface ProcessModelpublic final TimeDiscretization getTimeDiscretization()
getTimeDiscretization in interface ProcessModelMonteCarloProcessFromProcessModel.getTimeDiscretization()public final double getTime(int timeIndex)
timeIndex - Time indexMonteCarloProcessFromProcessModel.getTime(int)public final int getTimeIndex(double time)
time - A given time.MonteCarloProcessFromProcessModel.getTimeIndex(double)Copyright © 2019. All rights reserved.