26package umontreal.ssj.hups;
28import umontreal.ssj.util.PrintfFormat;
65 public F2wNetLFSR(
int w,
int r,
int modQ,
int step,
int nbcoeff,
int coeff[],
int nocoeff[],
int dim) {
66 param =
new F2wStructure(w, r, modQ, step, nbcoeff, coeff, nocoeff);
67 param.initParamLFSR();
79 param.initParamLFSR();
80 initNet(param.r, param.w,
dim);
85 return s + param.toString();
88 private void initNet(
int r,
int w,
int dim) {
94 normFactor = 1.0 / (1L << 31);
95 genMat =
new int[
dim * numCols];
97 for (
int j = 0; j < numCols; j++) {
98 param.state = 1 << (r * w - 1 - j);
100 genMat[j] = param.output;
101 for (
int i = 1; i <
dim; i++) {
103 genMat[i * numCols + j] = param.output;
A special case of DigitalNet for the base .
String toString()
Formats a string that contains information on this digital net.
F2wNetLFSR(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.
F2wNetLFSR(String filename, int no, int dim)
Constructs a point set after reading its parameters from file filename; the parameters are located at...
This class implements methods and fields needed by the classes.
int numPoints
Number of points.
int dim
Dimension of the points.