SSJ API Documentation
Stochastic Simulation in Java
Loading...
Searching...
No Matches
F2wNetPolyLCG.java
1/*
2 * Class: F2wNetPolyLCG
3 * Description: digital nets in base 2 starting from a polynomial LCG
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
27import umontreal.ssj.util.PrintfFormat;
28
47public class F2wNetPolyLCG extends DigitalNetBase2 {
48 private F2wStructure param;
49
63
68 public F2wNetPolyLCG(int type, int w, int r, int modQ, int step, int nbcoeff, int coeff[], int nocoeff[], int dim) {
69 param = new F2wStructure(w, r, modQ, step, nbcoeff, coeff, nocoeff);
70 initNet(r, w, dim);
71 }
72
79 public F2wNetPolyLCG(String filename, int no, int dim) {
80 param = new F2wStructure(filename, no);
81 initNet(param.r, param.w, dim);
82 }
83
84 public String toString() {
85 String s = "F2wNetPolyLCG:" + PrintfFormat.NEWLINE;
86 return s + param.toString();
87 }
88
89 private void initNet(int r, int w, int dim) {
90 normFactor = param.normFactor;
91 }
92}
A special case of DigitalNet for the base .
F2wNetPolyLCG(String filename, int no, int dim)
Constructs a point set after reading its parameters from file filename; the parameters are located at...
F2wNetPolyLCG(int type, int w, int r, int modQ, int step, int nbcoeff, int coeff[], int nocoeff[], int dim)
Constructs and stores the set of cycles for an LCG with modulus n and multiplier a.
String toString()
Formats a string that contains information on this digital net.
This class implements methods and fields needed by the classes.
int dim
Dimension of the points.
This class acts like a StringBuffer which defines new types of append methods.
static final String NEWLINE
End-of-line symbol or line separator.