3import java.io.IOException;
4import umontreal.ssj.rng.*;
5import umontreal.ssj.hups.*;
6import umontreal.ssj.mcqmctools.*;
7import umontreal.ssj.stat.Tally;
10public class AsianGBMRQMC2
extends AsianGBM2 {
12 public AsianGBMRQMC2(
double r,
double sigma,
double strike,
double s0,
int s,
double[] zeta) {
13 super(r, sigma, strike, s0, s, zeta);
16 public static void main(String[] args)
throws IOException {
18 double[] zeta =
new double[d + 1];
19 for (
int j = 0; j <= d; j++)
20 zeta[j] = (
double) j / (double) d;
21 AsianGBMRQMC2 model =
new AsianGBMRQMC2(0.05, 0.5, 100.0, 100.0, d, zeta);
22 Tally statMC =
new Tally(
"value of Asian option");
23 Tally statRQMC =
new Tally(
"RQMC averages for Asian option under GBM");
31 System.out.println(
"Ordinary MC:");
33 System.out.println(
"------------------------\n");
36 System.out.println(
"RQMC experiment:");
38 System.out.println(
"----------------------------------------------------\n");
42 System.out.println(
"Experiment for MC/RQMC comparison:");
This class provides the basic structures for storing and manipulating linear digital nets in base ,...
This class implements a umontreal.ssj.hups.PointSetRandomization that performs a left matrix scrambli...
This class implements digital nets and digital sequences in base 2 formed by the first points of a S...
Extends RandomStreamBase using a composite linear feedback shift register (LFSR) (or Tausworthe) RNG ...
This interface is for a randomization that can be used to randomize a umontreal.ssj....
This interface defines the basic structures to handle multiple streams of uniform (pseudo)random numb...