public class VarianceGammaProcessDiff extends VarianceGammaProcess
GammaProcess'es (see):
where X(0) is a constant corresponding to the initial value of the process
and
path| Constructor and Description |
|---|
VarianceGammaProcessDiff(double s0,
double theta,
double sigma,
double nu,
GammaProcess gpos,
GammaProcess gneg)
Same as above.
|
VarianceGammaProcessDiff(double s0,
double theta,
double sigma,
double nu,
RandomStream stream)
Constructs a new VarianceGammaProcessDiff with parameters
θ =
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
generatePath()
Generates, returns and saves the path.
|
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.
|
GammaProcess |
getGneg()
Returns a reference to the
GammaProcess object gneg
used to generate the
Γ- component of the process. |
GammaProcess |
getGpos()
Returns a reference to the
GammaProcess object gpos
used to generate the
Γ+ component of the process. |
double |
nextObservation()
Generates the observation for the next time.
|
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. |
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. |
void |
setStream(RandomStream stream)
Sets the
RandomStream
of the two GammaProcess'es to the same stream. |
getBrownianMotion, getGammaProcess, getNu, getSigma, getStream, getTheta, setParamsgeneratePath, getArrayMappingCounterToIndex, getCurrentObservation, getCurrentObservationIndex, getNbObservationTimes, getObservation, getObservationTimes, getPath, getSubpath, getX0, hasNextObservation, setObservationTimes, setX0public VarianceGammaProcessDiff(double s0,
double theta,
double sigma,
double nu,
RandomStream stream)
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.public VarianceGammaProcessDiff(double s0,
double theta,
double sigma,
double nu,
GammaProcess gpos,
GammaProcess gneg)
GammaProcess
objects for
Γ+ and
Γ- are
set to those of and their
initial values
Γ+(t0) and
Γ-(t0) are set to 0.
Also, since there is only one
RandomStream
in the other constructor, only the
RandomStream
included in the GammaProcess gpos is kept, as the
RandomStream of gneg
is the same.public double nextObservation()
VarianceGammaProcessBrownianMotionBridge and GammaProcessBridge
must be used in the constructor in that case. Furthermore, for bridge
sampling, the order of the observations is that of the bridge,
not sequential order.nextObservation in class VarianceGammaProcesspublic double[] generatePath()
generatePath in class VarianceGammaProcesspublic double[] generatePath(double[] uniform01)
generatePath in class VarianceGammaProcesspublic void resetStartProcess()
GammaProcess objects used to generate this process.resetStartProcess in class VarianceGammaProcesspublic GammaProcess getGpos()
GammaProcess object gpos
used to generate the
Γ+ component of the process.public GammaProcess getGneg()
GammaProcess object gneg
used to generate the
Γ- component of the process.public void setObservationTimes(double[] t,
int d)
GammaProcess'es.setObservationTimes in class VarianceGammaProcesspublic void setStream(RandomStream stream)
RandomStream
of the two GammaProcess'es to the same stream.setStream in class VarianceGammaProcessTo submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.