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, wait
applyStateSpaceTransform, applyStateSpaceTransformInverse, getCloneWithModifiedData, getDrift, getFactorLoading, getInitialState, getNumberOfComponents, getNumeraire, getRandomVariableForConstant
public RandomVariable[] getInitialValue()
public void setProcess(MonteCarloProcess process)
ProcessModel
setProcess
in interface ProcessModel
process
- The process.public MonteCarloProcess getProcess()
ProcessModel
getProcess
in interface ProcessModel
public int getNumberOfFactors()
ProcessModel
getNumberOfFactors
in interface ProcessModel
public 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()
ProcessModel
getReferenceDate
in interface ProcessModel
public final TimeDiscretization getTimeDiscretization()
getTimeDiscretization
in interface ProcessModel
MonteCarloProcessFromProcessModel.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 © 2020. All rights reserved.