umontreal.iro.lecuyer.stochprocess
Class GeometricLevyProcess
- java.lang.Object
-
- umontreal.iro.lecuyer.stochprocess.StochasticProcess
-
- umontreal.iro.lecuyer.stochprocess.GeometricLevyProcess
-
- Direct Known Subclasses:
- GeometricNormalInverseGaussianProcess
public abstract class GeometricLevyProcess extends StochasticProcess
. Abstract class used as a parent class for the exponentiation of a Lévy process X(t):S(t) = S(0)exp(X(t) + (r - ωRN)t).The interest is here denoted r and is refered to as muGeom in the class below. The risk neutral correction is given by ωRN and takes into account risk aversion in the pricing of assets; its value depends on the specific Lévy process that is used.GeometricNormalInverseGaussianProcessis implemented as a child of this class and so couldGeometricVarianceGammaProcessandGeometricBrownianMotion.
-
-
Constructor Summary
Constructors Constructor and Description GeometricLevyProcess()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description double[]generatePath()Generates a path.StochasticProcessgetLevyProcess()Returns the Lévy process.doublegetMuGeom()Returns the geometric drift parameter, which is usually the interest rate, r.doublegetOmega()Returns the risk neutral correction.RandomStreamgetStream()Returns the stream from the underlying Lévy process.doublenextObservation()Returns the next observation.voidresetRiskNeutralCorrection(double omegaRN)Changes the value of ωRN.voidresetStartProcess()Resets the step counter of the geometric process and the underlying Lévy process to the start value.voidsetMuGeom(double muGeom)Sets the drift parameter (interest rate) of the geometric term.voidsetObservationTimes(double[] time, int d)Sets the observation times on the geometric process and the underlying Lévy process.voidsetStream(RandomStream stream)Resets the stream in the underlying Lévy process.-
Methods inherited from class umontreal.iro.lecuyer.stochprocess.StochasticProcess
generatePath, getArrayMappingCounterToIndex, getCurrentObservation, getCurrentObservationIndex, getNbObservationTimes, getObservation, getObservationTimes, getPath, getSubpath, getX0, hasNextObservation, setObservationTimes, setX0
-
-
-
-
Method Detail
-
generatePath
public double[] generatePath()
Generates a path.- Specified by:
generatePathin classStochasticProcess
-
nextObservation
public double nextObservation()
Returns the next observation. It will also work on a Lévy process which is sampled using the bridge order, but it will return the observations in the bridge order. If the underlying Lévy process is of the PCA type, this method is not usable.- Overrides:
nextObservationin classStochasticProcess
-
resetStartProcess
public void resetStartProcess()
Resets the step counter of the geometric process and the underlying Lévy process to the start value.- Overrides:
resetStartProcessin classStochasticProcess
-
setObservationTimes
public void setObservationTimes(double[] time, int d)Sets the observation times on the geometric process and the underlying Lévy process.- Overrides:
setObservationTimesin classStochasticProcess
-
getOmega
public double getOmega()
Returns the risk neutral correction.
-
getMuGeom
public double getMuGeom()
Returns the geometric drift parameter, which is usually the interest rate, r.
-
setMuGeom
public void setMuGeom(double muGeom)
Sets the drift parameter (interest rate) of the geometric term.
-
getLevyProcess
public StochasticProcess getLevyProcess()
Returns the Lévy process.
-
resetRiskNeutralCorrection
public void resetRiskNeutralCorrection(double omegaRN)
Changes the value of ωRN. There should usually be no need to redefine the risk neutral correction from the value set by the constructor. However it is sometimes not unique, e.g. inGeometricNormalInverseGaussianProcess.
-
getStream
public RandomStream getStream()
Returns the stream from the underlying Lévy process. If the underlying Lévy process has multiple streams, it returns what the getStream() method of that process was made to return.- Specified by:
getStreamin classStochasticProcess
-
setStream
public void setStream(RandomStream stream)
Resets the stream in the underlying Lévy process. If the underlying Lévy process has multiple streams, it sets the streams on this process in the same way as setStream() for that process.- Specified by:
setStreamin classStochasticProcess
-
-
DMelt 3.0 © DataMelt by jWork.ORG