public class GammaProcessBridge extends GammaProcess
BrownianMotionBridge.
Note that gamma bridge sampling requires not only gamma variates, but also beta variates. The latter generally take a longer time to generate than the former. The class GammaSymmetricalBridgeProcess provides a faster implementation when the number of observation times is a power of two.
The warning from class BrownianMotionBridge applies verbatim
to this class.
path| Constructor and Description |
|---|
GammaProcessBridge(double s0,
double mu,
double nu,
GammaGen Ggen,
BetaGen Bgen)
Constructs a new GammaProcessBridge.
|
GammaProcessBridge(double s0,
double mu,
double nu,
RandomStream stream)
Constructs a new GammaProcessBridge 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 |
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 |
resetStartProcess()
Resets the observation counter to its initial value j = 0, so
that the current observation X(tj) becomes X(t0).
|
void |
setStream(RandomStream stream)
|
getMu, getNu, getStream, setParamsgeneratePath, getArrayMappingCounterToIndex, getCurrentObservation, getCurrentObservationIndex, getNbObservationTimes, getObservation, getObservationTimes, getPath, getSubpath, getX0, hasNextObservation, setObservationTimes, setObservationTimes, setX0public GammaProcessBridge(double s0,
double mu,
double nu,
RandomStream stream)
public GammaProcessBridge(double s0,
double mu,
double nu,
GammaGen Ggen,
BetaGen Bgen)
RandomStream. Furthermore, the
parameters of the
GammaGen and
BetaGen objects are not
important since the implementation forces the generators to use
the correct parameters.
(as defined in).public double nextObservation()
StochasticProcessnextObservation in class GammaProcesspublic double nextObservation(double nextT)
GammaProcessnextObservation in class GammaProcesspublic double[] generatePath(double[] uniform01)
GammaProcessRandomStream 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.generatePath in class GammaProcesspublic double[] generatePath()
GammaProcessRandomStream stream
or the RandomStream included
in the GammaGen Ggen.generatePath in class GammaProcesspublic void resetStartProcess()
StochasticProcessnextObservation, for a new sample path.resetStartProcess in class StochasticProcesspublic void setStream(RandomStream stream)
setStream in class GammaProcessTo submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.