Documentation of 'umontreal.iro.lecuyer.stochprocess.VarianceGammaProcessDiff' Java class
VarianceGammaProcessDiff
umontreal.iro.lecuyer.stochprocess

Class VarianceGammaProcessDiff

  • Direct Known Subclasses:
    VarianceGammaProcessDiffPCA


    public class VarianceGammaProcessDiff
    extends VarianceGammaProcess
    This class represents a variance gamma (VG) process {S(t) = X(t;θ, σ, ν) : t >= 0}. This process is generated using difference of gamma sampling (see), which uses the representation of the VG process as the difference of two independent GammaProcess'es (see):

    X(t;θ, σ, ν) : = X(0) + Γ+(t;μp, νp) - Γ-(t;μn, νn)

    where X(0) is a constant corresponding to the initial value of the process and

    μp = (( &thetas;^2 + 2σ^2/ν)1/2 + θ)/2
    μn = (( &thetas;^2 + 2σ^2/ν)1/2 - θ)/2
    νp = νμp2
    νn = νμn2

    • Constructor Detail

      • VarianceGammaProcessDiff

        public VarianceGammaProcessDiff(double s0,
                                        double theta,
                                        double sigma,
                                        double nu,
                                        RandomStream stream)
        Constructs a new VarianceGammaProcessDiff with parameters θ = theta, σ = sigma, ν = nu and initial value S(t0) = s0. stream is used by two instances of GammaProcess, Γ+ and Γ-, respectively. The other parameters are as in the class VarianceGammaProcess. The GammaProcess objects for Γ+ and Γ- are constructed using the parameters from and their initial values Γ+(t0) and Γ-(t0) are set to 0.
      • VarianceGammaProcessDiff

        public VarianceGammaProcessDiff(double s0,
                                        double theta,
                                        double sigma,
                                        double nu,
                                        GammaProcess gpos,
                                        GammaProcess gneg)
        The parameters of the GammaProcess objects for Γ+ and Γ- are set to those of and their initial values Γ+(t0) and Γ-(t0) are set to t0. The RandomStream of the Γ- process is overwritten with the RandomStream of the Γ+ process.
    • Method Detail

      • generatePath

        public double[] generatePath()
        Generates, returns and saves the path. To do so, the path of Γ+ is first generated and then the path of Γ-. This is not the optimal way of proceeding in order to reduce the variance in QMC simulations; for that, use generatePath(double[] uniform01) instead.
        Overrides:
        generatePath in class VarianceGammaProcess
      • generatePath

        public double[] generatePath(double[] uniform01)
        Similar to the usual generatePath(), but here the uniform random numbers used for the simulation must be provided to the method. This allows to properly use the uniform random variates in QMC simulations. This method divides the table of uniform random numbers uniform01 in two smaller tables, the first one containing the odd indices of uniform01 are used to generate the path of Γ+ and the even indices are used to generate the path of Γ-. This way of proceeding further reduces the variance for QMC simulations.
        Overrides:
        generatePath in class VarianceGammaProcess
      • resetStartProcess

        public void resetStartProcess()
        Sets the observation times on the VarianceGammaProcessDiff as usual, but also applies the resetStartProcess method to the two GammaProcess objects used to generate this process.
        Overrides:
        resetStartProcess in class VarianceGammaProcess
      • getGpos

        public GammaProcess getGpos()
        Returns a reference to the GammaProcess object gpos used to generate the Γ+ component of the process.
      • getGneg

        public GammaProcess getGneg()
        Returns a reference to the GammaProcess object gneg used to generate the Γ- component of the process.
      • setObservationTimes

        public void setObservationTimes(double[] t,
                                        int d)
        Sets the observation times on the VarianceGammaProcesDiff as usual, but also sets the observation times of the underlying GammaProcess'es.
        Overrides:
        setObservationTimes in class VarianceGammaProcess

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.