24package umontreal.ssj.stochprocess;
48 protected double[] x0;
70 public void getSubpath(
double[] subpath,
int[] pathIndices) {
71 for (
int j = 0; j < pathIndices.length; j++) {
72 for (
int i = 0; i < c; i++) {
73 subpath[c * j + i] = path[c * pathIndices[j] + i];
86 throw new IllegalArgumentException(
"Number of observation times d <= 0");
89 observationTimesSet =
true;
92 this.t =
new double[d + 1];
93 System.arraycopy(t, 0, this.t, 0, d + 1);
96 for (
int i = 0; i < d; i++) {
98 throw new IllegalArgumentException(
"Observation times t[] are not ordered chronologically");
112 for (
int i = 0; i < c; i++)
113 obs[i] = path[c * j + i];
120 return path[c * j + i];
136 for (
int i = 0; i < c; i++)
137 obs[i] = path[c * observationIndex + i];
143 public double[]
getX0(
double[] x0) {
144 for (
int i = 0; i < c; i++)
149 protected void init() {
150 if (observationTimesSet)
153 for (
int i = 0; i < c; i++)
158 protected void createPath() {
159 path =
new double[c * (d + 1)];
This class is a multivariate version of StochasticProcess where the process evolves in the -dimension...
void getObservation(int j, double[] obs)
Returns in the -dimensional vector obs.
void getSubpath(double[] subpath, int[] pathIndices)
Returns in subpath the values of the process at a subset of the observation times,...
abstract double[] generatePath()
Generates, returns, and saves the sample path.
void setObservationTimes(double[] t, int d)
Sets the observation times of the process to a copy of t, with.
void getCurrentObservation(double[] obs)
Returns the value of the last generated observation.
abstract void nextObservationVector(double[] obs)
Generates and returns in obs the next observation.
int getDimension()
Returns the dimension of .
double getObservation(int j, int i)
Returns from the current sample path.
double[] getX0(double[] x0)
Returns in x0 the initial value for this process.
Abstract base class for a stochastic process sampled (or observed) at a finite number of time points...