|
SSJ V. 2.6. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object umontreal.iro.lecuyer.stochprocess.StochasticProcess umontreal.iro.lecuyer.stochprocess.BrownianMotion umontreal.iro.lecuyer.stochprocess.BrownianMotionBridge
public class BrownianMotionBridge
Represents a Brownian motion process {X(t) : t >= 0} sampled using the bridge sampling technique (see for example). This technique generates first the value X(td) at the last observation time, then the value at time td/2 (or the nearest integer), then the values at time td/4 and at time t3d/4 (or the nearest integers), and so on. If the process has already been sampled at times ti < tk but not in between, the next sampling point in that interval will be tj where j = floor((i + k)/2). For example, if the sampling times used are { t0, t1, t2, t3, t4, t5}, then the observations are generated in the following order: X(t5), X(t2), X(t1), X(t3), X(t4).
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.
Constructor Summary | |
---|---|
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 μ = |
Method Summary | |
---|---|
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). |
Methods inherited from class umontreal.iro.lecuyer.stochprocess.BrownianMotion |
---|
generatePath, getGen, getMu, getSigma, getStream, nextObservation, setParams, setStream |
Methods inherited from class umontreal.iro.lecuyer.stochprocess.StochasticProcess |
---|
getArrayMappingCounterToIndex, getCurrentObservation, getCurrentObservationIndex, getNbObservationTimes, getObservation, getObservationTimes, getPath, getSubpath, getX0, hasNextObservation, setObservationTimes, setObservationTimes, setX0 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BrownianMotionBridge(double x0, double mu, double sigma, RandomStream stream)
RandomStream
stream.
public BrownianMotionBridge(double x0, double mu, double sigma, NormalGen gen)
NormalGen
gen.
Method Detail |
---|
public double nextObservation()
StochasticProcess
nextObservation
in class BrownianMotion
public double nextObservation(double nextTime)
BrownianMotion
nextObservation
in class BrownianMotion
public double[] generatePath()
StochasticProcess
generatePath
in class BrownianMotion
public double[] generatePath(double[] uniform01)
BrownianMotion
generatePath
in class BrownianMotion
public void resetStartProcess()
StochasticProcess
nextObservation
, for a new sample path.
resetStartProcess
in class StochasticProcess
|
SSJ V. 2.6. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |