public class GammaProcess extends StochasticProcess
In this class, the gamma process is sampled sequentially using equation.
path| Constructor and Description |
|---|
GammaProcess(double s0,
double mu,
double nu,
GammaGen Ggen)
Constructs a new GammaProcess with parameters
μ =
|
GammaProcess(double s0,
double mu,
double nu,
RandomStream stream)
Constructs a new GammaProcess with parameters
μ =
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
generatePath()
Generates, returns and saves the path
{X(t0), X(t1),…, X(td)}.
|
double[] |
generatePath(double[] uniform01)
Generates, returns and saves the path
{X(t0), X(t1),…, X(td)}.
|
double |
getMu()
Returns the value of the parameter μ.
|
double |
getNu()
Returns the value of the parameter ν.
|
RandomStream |
getStream()
Returns the
RandomStream stream. |
double |
nextObservation()
Generates and returns the next observation X(tj) of the stochastic process.
|
double |
nextObservation(double nextT)
Generates and returns the next observation at time
tj+1 =
|
void |
setParams(double s0,
double mu,
double nu)
Sets the parameters
S(t0) =
|
void |
setStream(RandomStream stream)
Resets the
RandomStream
of the GammaGen
to stream. |
generatePath, getArrayMappingCounterToIndex, getCurrentObservation, getCurrentObservationIndex, getNbObservationTimes, getObservation, getObservationTimes, getPath, getSubpath, getX0, hasNextObservation, resetStartProcess, setObservationTimes, setObservationTimes, setX0public GammaProcess(double s0,
double mu,
double nu,
RandomStream stream)
public GammaProcess(double s0,
double mu,
double nu,
GammaGen Ggen)
GammaGen object
Ggen are not important since the implementation forces the generator
to use the correct parameters (as defined above).public double nextObservation()
StochasticProcessnextObservation in class StochasticProcesspublic double nextObservation(double nextT)
public double[] generatePath()
RandomStream stream
or the RandomStream included
in the GammaGen Ggen.generatePath in class StochasticProcesspublic double[] generatePath(double[] uniform01)
RandomStream stream nor the
GammaGen Ggen. It
uses the vector of uniform random numbers U(0, 1) provided by the user
and generates the path by inversion. The vector uniform01 must be of
dimension d.public void setParams(double s0,
double mu,
double nu)
public double getMu()
public double getNu()
public void setStream(RandomStream stream)
RandomStream
of the GammaGen
to stream.setStream in class StochasticProcesspublic RandomStream getStream()
RandomStream stream.getStream in class StochasticProcessTo submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.