public abstract class LogNormalProcess extends Object
numberOfComponents here. The default for numberOfFactors is 1.| Modifier and Type | Class and Description |
|---|---|
static class |
LogNormalProcess.Scheme |
| Constructor and Description |
|---|
LogNormalProcess(int numberOfComponents,
BrownianMotionInterface brownianMotion)
Create a log normal process.
|
LogNormalProcess(TimeDiscretizationInterface timeDiscretization,
int numberOfComponents,
int numberOfPaths)
Create a simulation of log normal process.
|
LogNormalProcess(TimeDiscretizationInterface timeDiscretization,
int numberOfComponents,
int numberOfFactors,
int numberOfPaths,
int seed)
Create a simulation of log normal process.
|
| Modifier and Type | Method and Description |
|---|---|
BrownianMotionInterface |
getBrownianMotion() |
abstract RandomVariableInterface |
getDrift(int timeIndex,
int componentIndex,
RandomVariableInterface[] realizationAtTimeIndex,
RandomVariableInterface[] realizationPredictor) |
RandomVariableInterface[] |
getDrift(int timeIndex,
RandomVariableInterface[] realizationAtTimeIndex,
RandomVariableInterface[] realizationPredictor)
Get the the drift.
|
abstract RandomVariableInterface |
getFactorLoading(int timeIndex,
int factor,
int component,
RandomVariableInterface[] realizationAtTimeIndex)
This method should be overwritten and return the factor loading, i.e.
|
abstract RandomVariableInterface[] |
getInitialValue() |
RandomVariableInterface |
getMonteCarloWeights(int timeIndex)
This method returns the weights of a weighted Monte Carlo method (the probability density).
|
int |
getNumberOfComponents() |
int |
getNumberOfFactors() |
int |
getNumberOfPaths() |
RandomVariableInterface[] |
getProcessValue(int timeIndex)
This method returns the realization of the process at a certain time index.
|
RandomVariableInterface |
getProcessValue(int timeIndex,
int componentIndex)
This method returns the realization of the process at a certain time index.
|
LogNormalProcess.Scheme |
getScheme() |
double |
getTime(int timeIndex)
Returns the time for a given simulation time index.
|
TimeDiscretizationInterface |
getTimeDiscretization() |
int |
getTimeIndex(double time)
Returns the time index for a given simulation time.
|
protected void |
setBrownianMotion(BrownianMotionInterface brownianMotion)
A derived class may change the Brownian motion.
|
void |
setScheme(LogNormalProcess.Scheme scheme) |
public LogNormalProcess(int numberOfComponents,
BrownianMotionInterface brownianMotion)
numberOfComponents - The number of components (scalar processes).brownianMotion - A Brownian motionpublic LogNormalProcess(TimeDiscretizationInterface timeDiscretization, int numberOfComponents, int numberOfPaths)
timeDiscretization - The time discretization of the process.numberOfComponents - The number of components (the dimension of the process).numberOfPaths - The number of path of the simulation.public LogNormalProcess(TimeDiscretizationInterface timeDiscretization, int numberOfComponents, int numberOfFactors, int numberOfPaths, int seed)
timeDiscretization - The time discretization of the process.numberOfComponents - The number of components (the dimension of the process).numberOfFactors - The number of factors of the process.numberOfPaths - The number of path of the simulation.seed - The seed of the underlying random number generator.public abstract RandomVariableInterface[] getInitialValue()
public abstract RandomVariableInterface getDrift(int timeIndex, int componentIndex, RandomVariableInterface[] realizationAtTimeIndex, RandomVariableInterface[] realizationPredictor)
public RandomVariableInterface[] getDrift(int timeIndex, RandomVariableInterface[] realizationAtTimeIndex, RandomVariableInterface[] realizationPredictor)
timeIndex - The time index (related to the model times discretization).realizationAtTimeIndex - The given realization at timeIndexrealizationPredictor - The given realization at timeIndex+1 or null of no predictor is available.public abstract RandomVariableInterface getFactorLoading(int timeIndex, int factor, int component, RandomVariableInterface[] realizationAtTimeIndex)
Overwrite this method if you would like to implement a multi factor model.
timeIndex - The time index of the simulation time discretization.factor - The factor index.component - The component index.realizationAtTimeIndex - The realization at the current time index.public RandomVariableInterface[] getProcessValue(int timeIndex)
timeIndex - Time index at which the process should be observedpublic RandomVariableInterface getProcessValue(int timeIndex, int componentIndex)
timeIndex - Time index at which the process should be observedcomponentIndex - Component of the process vectorpublic RandomVariableInterface getMonteCarloWeights(int timeIndex)
timeIndex - Time index at which the process should be observedpublic int getNumberOfComponents()
public int getNumberOfPaths()
public int getNumberOfFactors()
public TimeDiscretizationInterface getTimeDiscretization()
public double getTime(int timeIndex)
timeIndex - Time indexpublic int getTimeIndex(double time)
time - A simulation timepublic BrownianMotionInterface getBrownianMotion()
public LogNormalProcess.Scheme getScheme()
protected void setBrownianMotion(BrownianMotionInterface brownianMotion)
brownianMotion - The brownianMotion to set.public void setScheme(LogNormalProcess.Scheme scheme)
scheme - The scheme to set.Copyright © 2015. All rights reserved.