public abstract class MonteCarloProcessFromProcessModel extends Object implements MonteCarloProcess, Cloneable
numberOfComponents
here.
The default for numberOfFactors
is 1.
This base class manages the time discretization and delegation to the model.The interface definition contains more details.
Constructor and Description |
---|
MonteCarloProcessFromProcessModel(TimeDiscretization timeDiscretization)
Create a discretization scheme / a time discrete process.
|
Modifier and Type | Method and Description |
---|---|
RandomVariable |
applyStateSpaceTransform(int componentIndex,
RandomVariable randomVariable) |
RandomVariable |
applyStateSpaceTransformInverse(int componentIndex,
RandomVariable randomVariable) |
abstract MonteCarloProcessFromProcessModel |
clone()
Create and return a clone of this process.
|
abstract Object |
getCloneWithModifiedSeed(int seed) |
RandomVariable[] |
getDrift(int timeIndex,
RandomVariable[] realizationAtTimeIndex,
RandomVariable[] realizationPredictor) |
RandomVariable[] |
getFactorLoading(int timeIndex,
int component,
RandomVariable[] realizationAtTimeIndex) |
RandomVariable[] |
getInitialState() |
int |
getNumberOfComponents() |
double |
getTime(int timeIndex) |
TimeDiscretization |
getTimeDiscretization() |
int |
getTimeIndex(double time)
Returns the time index for a given simulation time.
|
void |
setModel(ProcessModel model)
Sets the model to be used.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBrownianMotion, getCloneWithModifiedData, getNumberOfFactors, getNumberOfPaths, getStochasticDriver
getMonteCarloWeights, getProcessValue
public MonteCarloProcessFromProcessModel(TimeDiscretization timeDiscretization)
timeDiscretization
- The time discretization used for the discretization scheme.public abstract Object getCloneWithModifiedSeed(int seed)
public void setModel(ProcessModel model)
MonteCarloProcess
setModel
in interface MonteCarloProcess
model
- The model to be used.public int getNumberOfComponents()
getNumberOfComponents
in interface Process
public RandomVariable[] getInitialState()
public RandomVariable[] getDrift(int timeIndex, RandomVariable[] realizationAtTimeIndex, RandomVariable[] realizationPredictor)
public RandomVariable[] getFactorLoading(int timeIndex, int component, RandomVariable[] realizationAtTimeIndex)
public RandomVariable applyStateSpaceTransform(int componentIndex, RandomVariable randomVariable)
public RandomVariable applyStateSpaceTransformInverse(int componentIndex, RandomVariable randomVariable)
public TimeDiscretization getTimeDiscretization()
getTimeDiscretization
in interface Process
public double getTime(int timeIndex)
public int getTimeIndex(double time)
Process
getTimeIndex
in interface Process
time
- The given simulation time.public abstract MonteCarloProcessFromProcessModel clone()
MonteCarloProcess
Copyright © 2020. All rights reserved.