public class OrnsteinUhlenbeckProcessEuler extends OrnsteinUhlenbeckProcess
OrnsteinUhlenbeckProcess, but
the process is generated using the simple Euler scheme
where
Zj∼N(0, 1).
This is a good approximation only for small time intervals
tj - tj-1.path| Constructor and Description |
|---|
OrnsteinUhlenbeckProcessEuler(double x0,
double alpha,
double b,
double sigma,
NormalGen gen)
Here, the normal variate generator is specified directly
instead of specifying the stream.
|
OrnsteinUhlenbeckProcessEuler(double x0,
double alpha,
double b,
double sigma,
RandomStream stream)
Constructor with
parameters α = alpha, b, σ = sigma and initial
value
X(t0) = x0.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
generatePath()
Generates a sample path of the process at all observation times,
which are provided in array t.
|
double |
nextObservation()
Generates and returns the next observation at time tj+1 =
nextTime.
|
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 and returns an observation of the process
in dt time units,
assuming that the process has value x at the current time.
|
generatePath, getAlpha, getB, getGen, getSigma, getStream, setParams, setStreamgetArrayMappingCounterToIndex, getCurrentObservation, getCurrentObservationIndex, getNbObservationTimes, getObservation, getObservationTimes, getPath, getSubpath, getX0, hasNextObservation, resetStartProcess, setObservationTimes, setObservationTimes, setX0public OrnsteinUhlenbeckProcessEuler(double x0,
double alpha,
double b,
double sigma,
RandomStream stream)
public OrnsteinUhlenbeckProcessEuler(double x0,
double alpha,
double b,
double sigma,
NormalGen gen)
public double nextObservation()
nextObservation in class OrnsteinUhlenbeckProcesspublic double nextObservation(double nextTime)
OrnsteinUhlenbeckProcessnextObservation in class OrnsteinUhlenbeckProcesspublic double nextObservation(double x,
double dt)
nextObservation in class OrnsteinUhlenbeckProcesspublic double[] generatePath()
generatePath in class OrnsteinUhlenbeckProcessTo submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.