org.jquantlib.processes
Class HestonProcess
- java.lang.Object
-
- org.jquantlib.processes.StochasticProcess
-
- org.jquantlib.processes.HestonProcess
-
- All Implemented Interfaces:
- Observable, Observer
public class HestonProcess extends StochasticProcess
-
-
Constructor Summary
Constructors Constructor and Description HestonProcess(Handle<YieldTermStructure> riskFreeRate, Handle<YieldTermStructure> dividendYield, Handle<Quote> s0, double v0, double kappa, double theta, double sigma, double rho)HestonProcess(Handle<YieldTermStructure> riskFreeRate, Handle<YieldTermStructure> dividendYield, Handle<Quote> s0, double v0, double kappa, double theta, double sigma, double rho, org.jquantlib.processes.HestonProcess.Discretization d)
-
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.Matrixdiffusion(double time, Array x)Returns the diffusion part of the equation, i.e.Handle<YieldTermStructure>dividendYield()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.ArrayinitialValues()Returns the initial values of the state variablesRelinkableHandle<Quote>kappa()RelinkableHandle<Quote>rho()Handle<YieldTermStructure>riskFreeRate()Handle<Quote>s0()RelinkableHandle<Quote>sigma()intsize()Returns the number of dimensions of the stochastic processRelinkableHandle<Quote>theta()doubletime(Date d)Returns the time value corresponding to the given date in the reference system of the stochastic process.voidupdate()This method is called whenever the observed object is changed.RelinkableHandle<Quote>v0()-
Methods inherited from class org.jquantlib.processes.StochasticProcess
addObserver, countObservers, covariance, deleteObserver, deleteObservers, expectation, factors, getObservers, notifyObservers, notifyObservers, stdDeviation
-
-
-
-
Constructor Detail
-
HestonProcess
public HestonProcess(Handle<YieldTermStructure> riskFreeRate, Handle<YieldTermStructure> dividendYield, Handle<Quote> s0, double v0, double kappa, double theta, double sigma, double rho)
-
HestonProcess
public HestonProcess(Handle<YieldTermStructure> riskFreeRate, Handle<YieldTermStructure> dividendYield, Handle<Quote> s0, double v0, double kappa, double theta, double sigma, double rho, org.jquantlib.processes.HestonProcess.Discretization d)
-
-
Method Detail
-
update
public void update()
Description copied from interface:ObserverThis method is called whenever the observed object is changed.- Specified by:
updatein interfaceObserver- Overrides:
updatein classStochasticProcess
-
v0
public final RelinkableHandle<Quote> v0()
-
rho
public final RelinkableHandle<Quote> rho()
-
kappa
public final RelinkableHandle<Quote> kappa()
-
theta
public final RelinkableHandle<Quote> theta()
-
sigma
public final RelinkableHandle<Quote> sigma()
-
dividendYield
public final Handle<YieldTermStructure> dividendYield()
-
riskFreeRate
public Handle<YieldTermStructure> riskFreeRate()
-
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
-
time
public final 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
-
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 time, Array x)
Description copied from class:StochasticProcessReturns the diffusion part of the equation, i.e.- Specified by:
diffusionin classStochasticProcess
-
apply
public Array apply(Array x0, Array dx)
Description copied from class:StochasticProcessApplies a change to the asset value.- Overrides:
applyin 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
-
-
DataMelt 3.0 © DataMelt by jWork.ORG