org.jquantlib.processes
Class StochasticProcess1D
- java.lang.Object
-
- org.jquantlib.processes.StochasticProcess
-
- org.jquantlib.processes.StochasticProcess1D
-
- All Implemented Interfaces:
- Observable, Observer
- Direct Known Subclasses:
- ForwardMeasureProcess1D, GeneralizedBlackScholesProcess, GeometricBrownianMotionProcess, HullWhiteProcess, Merton76Process, OrnsteinUhlenbeckProcess
public abstract class StochasticProcess1D extends StochasticProcess
1-dimensional stochastic processThis class describes a stochastic process governed by
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static interfaceStochasticProcess1D.Discretization1DDiscretization of a stochastic process over a given time interval-
Nested classes/interfaces inherited from class org.jquantlib.processes.StochasticProcess
StochasticProcess.Discretization
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description Arrayapply(Array x0, Array dx)Applies a change to the asset value.doubleapply(double x0, double dx)Applies a change to the asset value.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.abstract doublediffusion(double t, double x)Returns the diffusion part of the equation, i.e.Arraydrift(double t, Array x)Returns the drift part of the equation, i.e.,abstract doubledrift(double t, double x)Returns the drift part of the equationArrayevolve(double t0, Array x0, double dt, Array dw)Returns the asset value after a time interval according to the given discretization.doubleevolve(double t0, double x0, double dt, double 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.doubleexpectation(double t0, double 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 variablesintsize()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.doublestdDeviation(double t0, double x0, double dt)Returns the standard deviation of the process after a time interval according to the given discretization.doublevariance(double t0, double x0, double dt)Returns the variance of the process after a time interval according to the given discretization.abstract doublex0()Returns the initial value of the state variable-
Methods inherited from class org.jquantlib.processes.StochasticProcess
addObserver, countObservers, deleteObserver, deleteObservers, factors, getObservers, notifyObservers, notifyObservers, time, update
-
-
-
-
Method Detail
-
x0
public abstract double x0()
Returns the initial value of the state variable
-
drift
public abstract double drift(double t, double x)Returns the drift part of the equation
-
diffusion
public abstract double diffusion(double t, double x)Returns the diffusion part of the equation, i.e.
-
expectation
public double expectation(double t0, double x0, double dt)Returns 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.
-
stdDeviation
public double stdDeviation(double t0, double x0, double dt)Returns 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.
-
variance
public double variance(double t0, double x0, double dt)Returns the variance 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.
-
evolve
public final double evolve(double t0, double x0, double dt, double dw)Returns the asset value after a time interval according to the given discretization. By default, it returns where is the expectation and the standard deviation.
-
apply
public double apply(double x0, double dx)Applies a change to the asset value. By default, it returns .
-
size
public final int size()
Description copied from class:StochasticProcessReturns the number of dimensions of the stochastic process- Specified by:
sizein classStochasticProcess
-
initialValues
public final Array initialValues()
Description copied from class:StochasticProcessReturns the initial values of the state variables- Specified by:
initialValuesin classStochasticProcess
-
drift
public final 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 final 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 final 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 final 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 final 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 final 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 final Array apply(Array x0, Array dx)
Description copied from class:StochasticProcessApplies a change to the asset value.- Overrides:
applyin classStochasticProcess
-
-
DataMelt 3.0 © DataMelt by jWork.ORG