public class DigitalNetBase2FromFile extends DigitalNetBase2
DigitalNetFromFile.
The parameters used in building the net are those defined in class
DigitalNetBase2.
The format of the data files must be the following (where B is any Cj):
(see the format in guidehups.pdf)
For each dimension j, there must be a k-vector of 32-bit integers (the ai) corresponding to the columns of Cj. The correspondance is such that integer ai = 230(Cj)1i +229(Cj)2i + ... +231-r(Cj)ri.
| Constructor and Description |
|---|
DigitalNetBase2FromFile(java.lang.String filename,
int s1)
Same as
DigitalNetBase2FromFile(filename, r, 31, s1) where
s1 is the dimension and r is given in data file filename. |
DigitalNetBase2FromFile(java.lang.String filename,
int r1,
int w,
int s1)
Constructs a digital net in base 2 after reading its parameters from file
filename.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
listDir(java.lang.String dirname)
Lists all files (or directories) in directory dirname.
|
java.lang.String |
toString()
Formats a string that contains information about the point set.
|
java.lang.String |
toStringDetailed()
Writes the parameters and the generating matrices of this digital net
to a string.
|
addRandomShift, addRandomShift, clearRandomShift, getCoordinate, getCoordinateNoGray, iBinomialMatrixScramble, iBinomialMatrixScrambleFaurePermut, iBinomialMatrixScrambleFaurePermutAll, iBinomialMatrixScrambleFaurePermutDiag, iterator, iteratorNoGray, leftMatrixScramble, leftMatrixScrambleDiag, leftMatrixScrambleFaurePermut, leftMatrixScrambleFaurePermutAll, leftMatrixScrambleFaurePermutDiag, printGeneratorMatrices, printGeneratorMatricesTrans, rightMatrixScramble, stripedMatrixScramble, stripedMatrixScrambleFaurePermutAlleraseOriginalGeneratorMatrices, resetGeneratorMatrices, unrandomizeaddRandomShift, addRandomShift, formatPoints, formatPoints, formatPoints, formatPoints, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsNumbered, formatPointsNumbered, getDimension, getNumPoints, getStream, randomize, randomize, randomize, randomize, randomize, setStreampublic DigitalNetBase2FromFile(java.lang.String filename,
int r1,
int w,
int s1)
throws java.io.IOException,
java.net.MalformedURLException
DigitalNetFromFile.
Parameter w gives the number of bits of resolution, r1 is
the number of rows, and s1 is the dimension.
Restrictions: s1 must be less than the maximal dimension, and
r1 less than the maximal number of rows in the data file.
Also w >= r1.filename - Name of the file to be readr1 - Number of rows for the generating matricesw - Number of bits of resolutions1 - Number of dimensionsjava.io.IOExceptionjava.net.MalformedURLExceptionpublic DigitalNetBase2FromFile(java.lang.String filename,
int s1)
throws java.io.IOException,
java.net.MalformedURLException
DigitalNetBase2FromFile(filename, r, 31, s1) where
s1 is the dimension and r is given in data file filename.filename - Name of the file to be reads1 - Number of dimensionsjava.io.IOExceptionjava.net.MalformedURLExceptionpublic java.lang.String toString()
PointSettoString in class DigitalNetBase2public java.lang.String toStringDetailed()
public static java.lang.String listDir(java.lang.String dirname)
throws java.io.IOException
java.io.IOExceptionTo submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.