public class CIRProcess extends StochasticProcess
path| Constructor and Description |
|---|
CIRProcess(double x0,
double alpha,
double b,
double sigma,
ChiSquareNoncentralGen gen)
The noncentral chi-square variate generator gen
is specified directly instead of specifying the stream.
|
CIRProcess(double x0,
double alpha,
double b,
double sigma,
RandomStream stream)
Constructs a new CIRProcess 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(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.
|
ChiSquareNoncentralGen |
getGen()
Returns the noncentral chi-square random variate generator used.
|
double |
getSigma()
Returns the value of σ.
|
RandomStream |
getStream()
Returns the random stream of the noncentral chi-square 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 =
|
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) =
|
void |
setStream(RandomStream stream)
Resets the random stream of the noncentral chi-square generator to stream.
|
getArrayMappingCounterToIndex, getCurrentObservation, getCurrentObservationIndex, getNbObservationTimes, getObservation, getObservationTimes, getPath, getSubpath, getX0, hasNextObservation, resetStartProcess, setObservationTimes, setObservationTimes, setX0public CIRProcess(double x0,
double alpha,
double b,
double sigma,
RandomStream stream)
public CIRProcess(double x0,
double alpha,
double b,
double sigma,
ChiSquareNoncentralGen gen)
public double nextObservation()
StochasticProcessnextObservation in class StochasticProcesspublic double nextObservation(double nextTime)
public double nextObservation(double x,
double dt)
public double[] generatePath()
StochasticProcessgeneratePath in class StochasticProcesspublic double[] generatePath(RandomStream stream)
StochasticProcessgeneratePath in class StochasticProcesspublic void setParams(double x0,
double alpha,
double b,
double sigma)
public void setStream(RandomStream stream)
setStream in class StochasticProcesspublic RandomStream getStream()
getStream in class StochasticProcesspublic double getAlpha()
public double getB()
public double getSigma()
public ChiSquareNoncentralGen getGen()
To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.