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,
BrownianMotion brownianMotion)
Create a log normal process.
|
LogNormalProcess(TimeDiscretization timeDiscretization,
int numberOfComponents,
int numberOfPaths)
Create a simulation of log normal process.
|
LogNormalProcess(TimeDiscretization timeDiscretization,
int numberOfComponents,
int numberOfFactors,
int numberOfPaths,
int seed)
Create a simulation of log normal process.
|
| Modifier and Type | Method and Description |
|---|---|
BrownianMotion |
getBrownianMotion() |
abstract RandomVariable |
getDrift(int timeIndex,
int componentIndex,
RandomVariable[] realizationAtTimeIndex,
RandomVariable[] realizationPredictor) |
RandomVariable[] |
getDrift(int timeIndex,
RandomVariable[] realizationAtTimeIndex,
RandomVariable[] realizationPredictor)
Get the the drift.
|
abstract RandomVariable |
getFactorLoading(int timeIndex,
int factor,
int component,
RandomVariable[] realizationAtTimeIndex)
This method should be overwritten and return the factor loading, i.e.
|
abstract RandomVariable[] |
getInitialValue() |
RandomVariable |
getMonteCarloWeights(int timeIndex)
This method returns the weights of a weighted Monte Carlo method (the probability density).
|
int |
getNumberOfComponents() |
int |
getNumberOfFactors() |
int |
getNumberOfPaths() |
RandomVariable[] |
getProcessValue(int timeIndex)
This method returns the realization of the process at a certain time index.
|
RandomVariable |
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.
|
TimeDiscretization |
getTimeDiscretization() |
int |
getTimeIndex(double time)
Returns the time index for a given simulation time.
|
protected void |
setBrownianMotion(BrownianMotion brownianMotion)
A derived class may change the Brownian motion.
|
void |
setScheme(LogNormalProcess.Scheme scheme) |
public LogNormalProcess(int numberOfComponents,
BrownianMotion brownianMotion)
numberOfComponents - The number of components (scalar processes).brownianMotion - A Brownian motionpublic LogNormalProcess(TimeDiscretization 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(TimeDiscretization 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 RandomVariable[] getInitialValue()
public abstract RandomVariable getDrift(int timeIndex, int componentIndex, RandomVariable[] realizationAtTimeIndex, RandomVariable[] realizationPredictor)
public RandomVariable[] getDrift(int timeIndex, RandomVariable[] realizationAtTimeIndex, RandomVariable[] 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 RandomVariable getFactorLoading(int timeIndex, int factor, int component, RandomVariable[] 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 RandomVariable[] getProcessValue(int timeIndex)
timeIndex - Time index at which the process should be observedpublic RandomVariable getProcessValue(int timeIndex, int componentIndex)
timeIndex - Time index at which the process should be observedcomponentIndex - Component of the process vectorpublic RandomVariable getMonteCarloWeights(int timeIndex)
timeIndex - Time index at which the process should be observedpublic int getNumberOfComponents()
public int getNumberOfPaths()
public int getNumberOfFactors()
public TimeDiscretization getTimeDiscretization()
public double getTime(int timeIndex)
timeIndex - Time indexpublic int getTimeIndex(double time)
time - A simulation timepublic BrownianMotion getBrownianMotion()
public LogNormalProcess.Scheme getScheme()
protected void setBrownianMotion(BrownianMotion brownianMotion)
brownianMotion - The brownianMotion to set.public void setScheme(LogNormalProcess.Scheme scheme)
scheme - The scheme to set.Copyright © 2019. All rights reserved.