public class BrownianMotionBridge extends BrownianMotion
Warning:
Both the generatePath and the nextObservation methods from
BrownianMotion are
modified to use the bridge method.
In the case of nextObservation, the user should understand
that the observations returned are not ordered chronologically.
However they will be once an entire path is generated and the observations
are read from the internal array (referenced by the getPath method)
that contains them.
The method nextObservation(double nextTime) differs from that of
the class
BrownianMotion
in that nextTime represents
the next observation time of the Brownian bridge.
However, the ti supplied must still be non-decreasing with i.
Note also that, if the path is not entirely generated before being read from this array, there will be ``pollution'' from the previous path generated, and the observations will not represent a sample path of this process.
path| Constructor and Description |
|---|
BrownianMotionBridge(double x0,
double mu,
double sigma,
NormalGen gen)
Constructs a new BrownianMotionBridge with
parameters
μ =
|
BrownianMotionBridge(double x0,
double mu,
double sigma,
RandomStream stream)
Constructs a new BrownianMotionBridge with
parameters
μ =
|
| 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)
Same as generatePath(), but a vector of uniform random numbers
must be provided to the method.
|
double |
nextObservation()
Generates and returns the next observation X(tj) of the stochastic process.
|
double |
nextObservation(double nextTime)
Generates and returns the next observation at time tj+1 =
nextTime.
|
void |
resetStartProcess()
Resets the observation counter to its initial value j = 0, so
that the current observation X(tj) becomes X(t0).
|
generatePath, getGen, getMu, getSigma, getStream, nextObservation, setParams, setStreamgetArrayMappingCounterToIndex, getCurrentObservation, getCurrentObservationIndex, getNbObservationTimes, getObservation, getObservationTimes, getPath, getSubpath, getX0, hasNextObservation, setObservationTimes, setObservationTimes, setX0public BrownianMotionBridge(double x0,
double mu,
double sigma,
RandomStream stream)
RandomStream stream.public double nextObservation()
StochasticProcessnextObservation in class BrownianMotionpublic double nextObservation(double nextTime)
BrownianMotionnextObservation in class BrownianMotionpublic double[] generatePath()
StochasticProcessgeneratePath in class BrownianMotionpublic double[] generatePath(double[] uniform01)
BrownianMotiongeneratePath in class BrownianMotionpublic void resetStartProcess()
StochasticProcessnextObservation, for a new sample path.resetStartProcess in class StochasticProcessTo submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.