public abstract class AbstractModel extends Object implements AbstractModelInterface
AbstractModelInterface.The interface definition contains more details.| Constructor and Description |
|---|
AbstractModel() |
| Modifier and Type | Method and Description |
|---|---|
RandomVariableInterface[] |
getInitialValue()
Returns the initial value of the model.
|
RandomVariableInterface |
getMonteCarloWeights(int timeIndex) |
int |
getNumberOfFactors()
Returns the number of factors m, i.e., the number of independent Brownian drivers.
|
AbstractProcessInterface |
getProcess()
Get the numerical scheme used to generate the stochastic process.
|
RandomVariableInterface |
getProcessValue(int timeIndex,
int componentIndex) |
double |
getTime(int timeIndex)
Return the simulation time for a given time index.
|
TimeDiscretizationInterface |
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(AbstractProcessInterface process)
Set the numerical scheme used to generate the stochastic process.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyStateSpaceTransform, getDrift, getFactorLoading, getInitialState, getNumberOfComponents, getNumerairepublic RandomVariableInterface[] getInitialValue()
public void setProcess(AbstractProcessInterface process)
AbstractModelInterfacesetProcess in interface AbstractModelInterfaceprocess - The process.public AbstractProcessInterface getProcess()
AbstractModelInterfacegetProcess in interface AbstractModelInterfacepublic int getNumberOfFactors()
AbstractModelInterfacegetNumberOfFactors in interface AbstractModelInterfacepublic RandomVariableInterface 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.ProcessInterface.getProcessValue(int, int)public RandomVariableInterface 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.ProcessInterface.getMonteCarloWeights(int)public final TimeDiscretizationInterface getTimeDiscretization()
getTimeDiscretization in interface AbstractModelInterfaceAbstractProcess.getTimeDiscretization()public final double getTime(int timeIndex)
timeIndex - Time indexAbstractProcess.getTime(int)public final int getTimeIndex(double time)
time - A given time.AbstractProcess.getTimeIndex(double)Copyright © 2015. All rights reserved.