Documentation of 'umontreal.iro.lecuyer.hups.DigitalNetBase2FromFile' Java class
DigitalNetBase2FromFile
umontreal.iro.lecuyer.hups

Class DigitalNetBase2FromFile



  • public class DigitalNetBase2FromFile
    extends DigitalNetBase2
    This class allows us to read the parameters defining a digital net in base 2 either from a file, or from a URL address on the World Wide Web. See the documentation in 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)
    \begin{figure}\begin{center}
 \tt
 \fbox{
 \begin {tabular}{ll}
 \multicolumn{2}{l}...
 ... & \\
 $\vdots$\ &\\
 $a_{k}$\ & \\
 \end {tabular}
 }
 \end{center}\end{figure}

    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 Detail

      • DigitalNetBase2FromFile

        public DigitalNetBase2FromFile(java.lang.String filename,
                                       int r1,
                                       int w,
                                       int s1)
                                throws java.io.IOException,
                                       java.net.MalformedURLException
        Constructs a digital net in base 2 after reading its parameters from file filename. See the documentation in 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.
        Parameters:
        filename - Name of the file to be read
        r1 - Number of rows for the generating matrices
        w - Number of bits of resolution
        s1 - Number of dimensions
        Throws:
        java.io.IOException
        java.net.MalformedURLException
      • DigitalNetBase2FromFile

        public DigitalNetBase2FromFile(java.lang.String filename,
                                       int s1)
                                throws java.io.IOException,
                                       java.net.MalformedURLException
        Same as DigitalNetBase2FromFile(filename, r, 31, s1) where s1 is the dimension and r is given in data file filename.
        Parameters:
        filename - Name of the file to be read
        s1 - Number of dimensions
        Throws:
        java.io.IOException
        java.net.MalformedURLException
    • Method Detail

      • toString

        public java.lang.String toString()
        Description copied from class: PointSet
        Formats a string that contains information about the point set.
        Overrides:
        toString in class DigitalNetBase2
        Returns:
        string representation of the point set information
      • toStringDetailed

        public java.lang.String toStringDetailed()
        Writes the parameters and the generating matrices of this digital net to a string. This is useful to check that the file parameters have been read correctly.
      • listDir

        public static java.lang.String listDir(java.lang.String dirname)
                                        throws java.io.IOException
        Lists all files (or directories) in directory dirname. Only relative pathnames should be used. The files are parameter files used in defining digital nets. For example, calling listDir("") will give the list of the main data directory in SSJ, while calling listDir("Edel/OOA2") will give the list of all files in directory Edel/OOA2.
        Throws:
        java.io.IOException

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.