|
finMath lib documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.finmath.montecarlo.model.AbstractModel
public abstract class AbstractModel
This class is an abstract base class to implement a model provided to an AbstractProcess.
Manages the delegation to AbstractProcessInterface.
For details see AbstractModelInterface
.
The interface definition contains more details.
Constructor Summary | |
---|---|
AbstractModel()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.finmath.montecarlo.model.AbstractModelInterface |
---|
applyStateSpaceTransform, getDrift, getFactorLoading, getInitialState, getNumberOfComponents, getNumeraire |
Constructor Detail |
---|
public AbstractModel()
Method Detail |
---|
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 vector
CalculationException
- Thrown if the valuation fails, specific cause may be available via the cause()
method.AbstractProcessInterface.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.AbstractProcessInterface.getMonteCarloWeights(int)
public final TimeDiscretizationInterface getTimeDiscretization()
getTimeDiscretization
in interface AbstractModelInterface
AbstractProcess.getTimeDiscretization()
public final double getTime(int timeIndex)
timeIndex
- Time index
AbstractProcess.getTime(int)
public final int getTimeIndex(double time)
time
- A given time.
AbstractProcess.getTimeIndex(double)
|
Copyright © 2014 Christian P. Fries. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |