org.jquantlib.processes
Class GeneralizedBlackScholesProcess
- java.lang.Object
-
- org.jquantlib.processes.StochasticProcess
-
- org.jquantlib.processes.StochasticProcess1D
-
- org.jquantlib.processes.GeneralizedBlackScholesProcess
-
- All Implemented Interfaces:
- Observable, Observer
- Direct Known Subclasses:
- BlackScholesMertonProcess
public class GeneralizedBlackScholesProcess extends StochasticProcess1D
Generalized Black-Scholes stochastic processThis class describes the stochastic process governed by
{2}) dt + \sigma dW_t. }
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jquantlib.processes.StochasticProcess1D
StochasticProcess1D.Discretization1D
-
Nested classes/interfaces inherited from class org.jquantlib.processes.StochasticProcess
StochasticProcess.Discretization
-
-
Constructor Summary
Constructors Constructor and Description GeneralizedBlackScholesProcess(Handle<? extends Quote> x0, Handle<YieldTermStructure> dividendTS, Handle<YieldTermStructure> riskFreeTS, Handle<BlackVolTermStructure> blackVolTS)GeneralizedBlackScholesProcess(Handle<? extends Quote> x0, Handle<YieldTermStructure> dividendTS, Handle<YieldTermStructure> riskFreeTS, Handle<BlackVolTermStructure> blackVolTS, StochasticProcess1D.Discretization1D discretization)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubleapply(double x0, double dx)Applies a change to the asset value.Handle<BlackVolTermStructure>blackVolatility()doublediffusion(double t, double x)Returns the diffusion part of the equation, i.e.Handle<YieldTermStructure>dividendYield()doubledrift(double t, double x)Returns the drift part of the equationHandle<LocalVolTermStructure>localVolatility()Handle<YieldTermStructure>riskFreeRate()Handle<? extends Quote>stateVariable()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.doublex0()Returns the initial value of the state variable-
Methods inherited from class org.jquantlib.processes.StochasticProcess1D
apply, covariance, diffusion, drift, evolve, evolve, expectation, expectation, initialValues, size, stdDeviation, stdDeviation, variance
-
Methods inherited from class org.jquantlib.processes.StochasticProcess
addObserver, countObservers, deleteObserver, deleteObservers, factors, getObservers, notifyObservers, notifyObservers
-
-
-
-
Constructor Detail
-
GeneralizedBlackScholesProcess
public GeneralizedBlackScholesProcess(Handle<? extends Quote> x0, Handle<YieldTermStructure> dividendTS, Handle<YieldTermStructure> riskFreeTS, Handle<BlackVolTermStructure> blackVolTS)
- Parameters:
discretization- is an Object that must implementDiscretizationandDiscretization1D.
-
GeneralizedBlackScholesProcess
public GeneralizedBlackScholesProcess(Handle<? extends Quote> x0, Handle<YieldTermStructure> dividendTS, Handle<YieldTermStructure> riskFreeTS, Handle<BlackVolTermStructure> blackVolTS, StochasticProcess1D.Discretization1D discretization)
- Parameters:
discretization- is an Object that must implementDiscretizationandDiscretization1D.
-
-
Method Detail
-
dividendYield
public final Handle<YieldTermStructure> dividendYield()
-
riskFreeRate
public final Handle<YieldTermStructure> riskFreeRate()
-
blackVolatility
public final Handle<BlackVolTermStructure> blackVolatility()
-
localVolatility
public final Handle<LocalVolTermStructure> localVolatility()
-
x0
public double x0()
Description copied from class:StochasticProcess1DReturns the initial value of the state variable- Specified by:
x0in classStochasticProcess1D
-
drift
public double drift(double t, double x)Description copied from class:StochasticProcess1DReturns the drift part of the equation- Specified by:
driftin classStochasticProcess1D
-
diffusion
public double diffusion(double t, double x)Description copied from class:StochasticProcess1DReturns the diffusion part of the equation, i.e.- Specified by:
diffusionin classStochasticProcess1D
-
apply
public final double apply(double x0, double dx)Description copied from class:StochasticProcess1DApplies a change to the asset value. By default, it returns .- Overrides:
applyin classStochasticProcess1D
-
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
-
update
public final void update()
Description copied from interface:ObserverThis method is called whenever the observed object is changed.- Specified by:
updatein interfaceObserver- Overrides:
updatein classStochasticProcess
-
-
DataMelt 3.0 © DataMelt by jWork.ORG