umontreal.iro.lecuyer.stochprocess
Class GeometricVarianceGammaProcess
- java.lang.Object
-
- umontreal.iro.lecuyer.stochprocess.StochasticProcess
-
- umontreal.iro.lecuyer.stochprocess.GeometricVarianceGammaProcess
-
public class GeometricVarianceGammaProcess extends StochasticProcess
-
-
Constructor Summary
Constructors Constructor and Description GeometricVarianceGammaProcess(double s0, double theta, double sigma, double nu, double mu, RandomStream stream)Constructs a new GeometricVarianceGammaProcess with parameters θ =theta , σ =sigma , ν =nu , μ =mu and initial value S(t0) =s0 .GeometricVarianceGammaProcess(double s0, double mu, VarianceGammaProcess vargamma)Constructs a new GeometricVarianceGammaProcess.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description double[]generatePath()Generates, returns, and saves the sample path {X(t0), X(t1),…, X(td)}.double[]generatePath(double[] uniform01)doublegetCurrentUpperBound()doublegetMu()Returns the value of the parameter μ.doublegetNu()Returns the value of the parameter ν.doublegetOmega()Returns the value of the quantity ω defined in.doublegetSigma()Returns the value of the parameter σ.RandomStreamgetStream()Returns the random stream of the underlying generator.doublegetTheta()Returns the value of the parameter θ.VarianceGammaProcessgetVarianceGammaProcess()Returns a reference to the variance gamma process X defined in the constructor.doublenextObservation()Generates and returns the next observation X(tj) of the stochastic process.voidresetStartProcess()Resets the GeometricaVarianceGammaProcess, but also applies the resetStartProcess method to theVarianceGammaProcessobject used to generate this process.voidsetParams(double s0, double theta, double sigma, double nu, double mu)Sets the parameters S(t0) =s0 , θ =theta , σ =sigma , ν =nu and μ =mu of the process.voidsetStream(RandomStream stream)Resets the random stream of the underlying generator to stream.-
Methods inherited from class umontreal.iro.lecuyer.stochprocess.StochasticProcess
generatePath, getArrayMappingCounterToIndex, getCurrentObservation, getCurrentObservationIndex, getNbObservationTimes, getObservation, getObservationTimes, getPath, getSubpath, getX0, hasNextObservation, setObservationTimes, setObservationTimes, setX0
-
-
-
-
Constructor Detail
-
GeometricVarianceGammaProcess
public GeometricVarianceGammaProcess(double s0, double theta, double sigma, double nu, double mu, RandomStream stream)Constructs a new GeometricVarianceGammaProcess with parameters θ =theta , σ =sigma , ν =nu , μ =mu and initial value S(t0) =s0 . The stream is used to generate theVarianceGammaProcessobject used to implement X in.
-
GeometricVarianceGammaProcess
public GeometricVarianceGammaProcess(double s0, double mu, VarianceGammaProcess vargamma)Constructs a new GeometricVarianceGammaProcess. The parameters θ, σ, ν are set to the parameters of theVarianceGammaProcessvargamma. The parameter μ is set to mu and the initial values S(t0) =s0 .
-
-
Method Detail
-
nextObservation
public double nextObservation()
Description copied from class:StochasticProcessGenerates and returns the next observation X(tj) of the stochastic process. The processes are usually sampled sequentially, i.e. if the last observation generated was for time tj-1, the next observation returned will be for time tj. In some cases, subclasses extending this abstract class may use non-sequential sampling algorithms (such as bridge sampling). The order of generation of the tj's is then specified by the subclass. All the processes generated using principal components analysis (PCA) do not have this method.- Overrides:
nextObservationin classStochasticProcess
-
generatePath
public double[] generatePath()
Description copied from class:StochasticProcessGenerates, returns, and saves the sample path {X(t0), X(t1),…, X(td)}. It can then be accessed via getPath, getSubpath, or getObservation. The generation method depends on the process type.- Specified by:
generatePathin classStochasticProcess
-
generatePath
public double[] generatePath(double[] uniform01)
-
getCurrentUpperBound
public double getCurrentUpperBound()
-
resetStartProcess
public void resetStartProcess()
Resets the GeometricaVarianceGammaProcess, but also applies the resetStartProcess method to theVarianceGammaProcessobject used to generate this process.- Overrides:
resetStartProcessin classStochasticProcess
-
setParams
public void setParams(double s0, double theta, double sigma, double nu, double mu)Sets the parameters S(t0) =s0 , θ =theta , σ =sigma , ν =nu and μ =mu of the process. Warning: This method will recompute some quantities stored internally, which may be slow if called repeatedly.
-
getTheta
public double getTheta()
Returns the value of the parameter θ.
-
getMu
public double getMu()
Returns the value of the parameter μ.
-
getNu
public double getNu()
Returns the value of the parameter ν.
-
getSigma
public double getSigma()
Returns the value of the parameter σ.
-
getOmega
public double getOmega()
Returns the value of the quantity ω defined in.
-
getVarianceGammaProcess
public VarianceGammaProcess getVarianceGammaProcess()
Returns a reference to the variance gamma process X defined in the constructor.
-
setStream
public void setStream(RandomStream stream)
Description copied from class:StochasticProcessResets the random stream of the underlying generator to stream.- Specified by:
setStreamin classStochasticProcess
-
getStream
public RandomStream getStream()
Description copied from class:StochasticProcessReturns the random stream of the underlying generator.- Specified by:
getStreamin classStochasticProcess
-
-
DMelt 3.0 © DataMelt by jWork.ORG