SSJ API Documentation
Stochastic Simulation in Java
Loading...
Searching...
No Matches
RQMCPointSet.java
1/*
2 * Class: RQMCPointSet
3 * Description: randomized quasi-Monte Carlo simulations
4 * Environment: Java
5 * Software: SSJ
6 * Copyright (C) 2001 Pierre L'Ecuyer and Universite de Montreal
7 * Organization: DIRO, Universite de Montreal
8 * @author
9 * @since
10 *
11 *
12 * Licensed under the Apache License, Version 2.0 (the "License");
13 * you may not use this file except in compliance with the License.
14 * You may obtain a copy of the License at
15 *
16 * http://www.apache.org/licenses/LICENSE-2.0
17 *
18 * Unless required by applicable law or agreed to in writing, software
19 * distributed under the License is distributed on an "AS IS" BASIS,
20 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 * See the License for the specific language governing permissions and
22 * limitations under the License.
23 *
24 */
25package umontreal.ssj.hups;
26
54public class RQMCPointSet {
55 protected PointSet set;
56 protected PointSetRandomization rand;
57 protected String label;
58
66 this.rand = rand;
67 this.set = p;
68 }
69
74 public void randomize() {
75 rand.randomize(set);
76 }
77
84 return set.iterator();
85 }
86
93 return set;
94 }
95
102 return rand;
103 }
104
110 public int getNumPoints() {
111 return set.getNumPoints();
112 }
113
120 public void setLabel(String label) {
121 this.label = label;
122 }
123
129 public String getLabel() {
130 return label;
131 }
132
138 public String toString() {
139 // StringBuffer sb = new StringBuffer("");
140 return ("RQMC with point set" + set.toString() + " " + rand.toString());
141 }
142}
This abstract class represents a general point set.
Definition PointSet.java:99
void randomize()
Randomizes the point set.
PointSet getPointSet()
Returns the point set associated to this object.
String toString()
For now, just returns the label for the associated RQMC point set.
int getNumPoints()
Returns the number of points in the associated point set.
PointSetRandomization getRandomization()
Returns the randomization associated to this object.
String getLabel()
Returns the label for the associated RQMC point set.
void setLabel(String label)
Gives a label (a short string) to identify this object, e.g., when making plots.
RQMCPointSet(PointSet p, PointSetRandomization rand)
Constructor with the point set p and the randomization rand.
PointSetIterator iterator()
Returns a new point set iterator for the point set associated to this object.
This is the interface for iterators that permit one to go through the points of a PointSet and the su...
This interface is for a randomization that can be used to randomize a umontreal.ssj....