org.jquantlib.model.shortrate
Class StochasticProcessArray
- java.lang.Object
-
- org.jquantlib.processes.StochasticProcess
-
- org.jquantlib.model.shortrate.StochasticProcessArray
-
- All Implemented Interfaces:
- Observable, Observer
public class StochasticProcessArray extends StochasticProcess
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jquantlib.processes.StochasticProcess
StochasticProcess.Discretization
-
-
Constructor Summary
Constructors Constructor and Description StochasticProcessArray(java.util.List<StochasticProcess1D> processes, Matrix correlation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Arrayapply(Array x0, Array dx)Applies a change to the asset value.Matrixcorrelation()Matrixcovariance(double t0, Array x0, double dt)Returns the covariance of the process after a time interval according to the given discretization.Matrixdiffusion(double t, Array x)Returns the diffusion part of the equation, i.e.Arraydrift(double t, Array x)Returns the drift part of the equation, i.e.,Arrayevolve(double t0, Array x0, double dt, Array dw)Returns the asset value after a time interval according to the given discretization.Arrayexpectation(double t0, Array x0, double dt)Returns the expectation of the process after a time interval according to the given discretization.ArrayinitialValues()Returns the initial values of the state variablesStochasticProcess1Dprocess(int i)intsize()Returns the number of dimensions of the stochastic processMatrixstdDeviation(double t0, Array x0, double dt)Returns the standard deviation of the process after a time interval according to the given discretization.doubletime(Date d)Returns the time value corresponding to the given date in the reference system of the stochastic process.-
Methods inherited from class org.jquantlib.processes.StochasticProcess
addObserver, countObservers, deleteObserver, deleteObservers, factors, getObservers, notifyObservers, notifyObservers, update
-
-
-
-
Constructor Detail
-
StochasticProcessArray
public StochasticProcessArray(java.util.List<StochasticProcess1D> processes, Matrix correlation)
-
-
Method Detail
-
initialValues
public Array initialValues()
Description copied from class:StochasticProcessReturns the initial values of the state variables- Specified by:
initialValuesin classStochasticProcess
-
size
public int size()
Description copied from class:StochasticProcessReturns the number of dimensions of the stochastic process- Specified by:
sizein classStochasticProcess
-
drift
public Array drift(double t, Array x)
Description copied from class:StochasticProcessReturns the drift part of the equation, i.e.,- Specified by:
driftin classStochasticProcess
-
diffusion
public Matrix diffusion(double t, Array x)
Description copied from class:StochasticProcessReturns the diffusion part of the equation, i.e.- Specified by:
diffusionin classStochasticProcess
-
expectation
public Array expectation(double t0, Array x0, double dt)
Description copied from class:StochasticProcessReturns the expectation of the process after a time interval according to the given discretization. This method can be overridden in derived classes which want to hard-code a particular discretization.- Overrides:
expectationin classStochasticProcess
-
stdDeviation
public Matrix stdDeviation(double t0, Array x0, double dt)
Description copied from class:StochasticProcessReturns the standard deviation of the process after a time interval according to the given discretization. This method can be overridden in derived classes which want to hard-code a particular discretization.- Overrides:
stdDeviationin classStochasticProcess
-
covariance
public Matrix covariance(double t0, Array x0, double dt)
Description copied from class:StochasticProcessReturns the covariance of the process after a time interval according to the given discretization. This method can be overridden in derived classes which want to hard-code a particular discretization.- Overrides:
covariancein classStochasticProcess
-
evolve
public Array evolve(double t0, Array x0, double dt, Array dw)
Description copied from class:StochasticProcessReturns the asset value after a time interval according to the given discretization. By default, it returns where is the expectation and the standard deviation.- Overrides:
evolvein classStochasticProcess
-
apply
public Array apply(Array x0, Array dx)
Description copied from class:StochasticProcessApplies a change to the asset value.- Overrides:
applyin classStochasticProcess
-
time
public double time(Date d)
Description copied from class:StochasticProcessReturns the time value corresponding to the given date in the reference system of the stochastic process.- Overrides:
timein classStochasticProcess
-
process
public StochasticProcess1D process(int i)
-
correlation
public Matrix correlation()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG