public class OrnsteinUhlenbeckProcess extends StochasticProcess
path| Constructor and Description |
|---|
OrnsteinUhlenbeckProcess(double x0,
double alpha,
double b,
double sigma,
NormalGen gen)
Here, the normal variate generator is specified directly
instead of specifying the stream.
|
OrnsteinUhlenbeckProcess(double x0,
double alpha,
double b,
double sigma,
RandomStream stream)
Constructs a new OrnsteinUhlenbeckProcess with parameters
α = alpha, b, σ = sigma and initial value
X(t0) = x0.
|
| 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.
|
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.
|
getArrayMappingCounterToIndex, getCurrentObservation, getCurrentObservationIndex, getNbObservationTimes, getObservation, getObservationTimes, getPath, getSubpath, getX0, hasNextObservation, resetStartProcess, setObservationTimes, setObservationTimes, setX0public OrnsteinUhlenbeckProcess(double x0,
double alpha,
double b,
double sigma,
RandomStream stream)
public OrnsteinUhlenbeckProcess(double x0,
double alpha,
double b,
double sigma,
NormalGen 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 NormalGen getGen()
To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.