SSJ API Documentation
Stochastic Simulation in Java
Loading...
Searching...
No Matches
VarianceGammaProcessAlternate.java
1package umontreal.ssj.stochprocess;
2
3import umontreal.ssj.rng.*;
4
18public class VarianceGammaProcessAlternate extends VarianceGammaProcess {
19
20 public VarianceGammaProcessAlternate(double s0, double theta, double sigma, double nu, RandomStream stream) {
21 super(s0, theta, sigma, nu, stream);
22 }
23
24 public VarianceGammaProcessAlternate(double s0, BrownianMotion BM, GammaProcess Gamma) {
25 super(s0, BM, Gamma);
26 }
27
32 public double[] generatePath() {
33 int d = getNumObservationTimes();
34 double[] points = new double[2 * d];
35 RandomStream stream = getStream();
36 for (int j = 0; j < 2 * d; j++)
37 points[j] = stream.nextDouble();
38 return generatePath(points);
39 }
40}
This class represents a Brownian motion process , sampled at times .
This class represents a gamma process fmad98a  (page 82) with mean parameter.
int getNumObservationTimes()
Returns the number of observation times, excluding the time .
double[] generatePath()
Generates the sample path by using the uniform random numbers in an alternate way,...
RandomStream getStream()
Returns the random stream of the BrownianMotion process, which should be the same as for the GammaPro...
This interface defines the basic structures to handle multiple streams of uniform (pseudo)random numb...
double nextDouble()
Returns a (pseudo)random number from the uniform distribution over the interval , using this stream,...