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, wait
applyStateSpaceTransform, getDrift, getFactorLoading, getInitialState, getNumberOfComponents, getNumeraire
public RandomVariableInterface[] getInitialValue()
public void setProcess(AbstractProcessInterface process)
AbstractModelInterface
setProcess
in interface AbstractModelInterface
process
- The process.public AbstractProcessInterface getProcess()
AbstractModelInterface
getProcess
in interface AbstractModelInterface
public int getNumberOfFactors()
AbstractModelInterface
getNumberOfFactors
in interface AbstractModelInterface
public 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 AbstractModelInterface
AbstractProcess.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.