|
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.CIRProcessEuler
public class CIRProcessEuler
.
This class represents a CIR process
as in CIRProcess
, but
the process is generated using the simple Euler scheme
Constructor Summary | |
---|---|
CIRProcessEuler(double x0,
double alpha,
double b,
double sigma,
NormalGen gen)
The normal variate generator gen is specified directly instead of specifying the stream. |
|
CIRProcessEuler(double x0,
double alpha,
double b,
double sigma,
RandomStream stream)
Constructs a new CIRProcessEuler with parameters α = alpha, b, σ = sigma and initial value X(t0) = x0. |
Method Summary | |
---|---|
double[] |
generatePath()
Generates, returns, and saves the sample path {X(t0), X(t1),…, X(td)}. |
double[] |
generatePath(RandomStream stream)
Same as generatePath(), but first resets the stream to stream. |
double |
getAlpha()
Returns the value of α. |
double |
getB()
Returns the value of b. |
NormalGen |
getGen()
Returns the normal random variate generator used. |
double |
getSigma()
Returns the value of σ. |
RandomStream |
getStream()
Returns the random stream of the normal generator. |
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, using the previous observation time tj defined earlier (either by this method or by setObservationTimes), as well as the value of the previous observation X(tj). |
double |
nextObservation(double x,
double dt)
Generates an observation of the process in dt time units, assuming that the process has value x at the current time. |
void |
setParams(double x0,
double alpha,
double b,
double sigma)
Resets the parameters X(t0) = x0, α = alpha, b = b and σ = sigma of the process. |
void |
setStream(RandomStream stream)
Resets the random stream of the normal generator to stream. |
Methods inherited from class umontreal.iro.lecuyer.stochprocess.StochasticProcess |
---|
getArrayMappingCounterToIndex, getCurrentObservation, getCurrentObservationIndex, getNbObservationTimes, getObservation, getObservationTimes, getPath, getSubpath, getX0, hasNextObservation, resetStartProcess, setObservationTimes, setObservationTimes, setX0 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CIRProcessEuler(double x0, double alpha, double b, double sigma, RandomStream stream)
public CIRProcessEuler(double x0, double alpha, double b, double sigma, NormalGen gen)
Method Detail |
---|
public double nextObservation()
StochasticProcess
nextObservation
in class StochasticProcess
public double nextObservation(double nextTime)
public double nextObservation(double x, double dt)
public double[] generatePath()
StochasticProcess
generatePath
in class StochasticProcess
public double[] generatePath(RandomStream stream)
StochasticProcess
generatePath
in class StochasticProcess
public void setParams(double x0, double alpha, double b, double sigma)
public void setStream(RandomStream stream)
setStream
in class StochasticProcess
public RandomStream getStream()
getStream
in class StochasticProcess
public double getAlpha()
public double getB()
public double getSigma()
public NormalGen getGen()
|
SSJ V. 2.6. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |